1

I want to use a custom developed class (within Zend Application) from outside a simple php file.

Like a class ABC (in Zend) i want to use it from outside the zend application like from (some_independent_file.php).

I actually want to write cron jobs and use some methods from my custom developed zend classes which are further dependent on zend classes.

Any help would be appreciated thanks!

2
  • 1
    Help on what? Do you need some courage? You can do it Andrew! Commented Sep 9, 2011 at 16:14
  • LOL; in short what i want to do is; can i load my entire zend application to some outside php class so if i am doing new SomeClass() it gets there; now its giving me error that cannot find class. I know i can do include but that wont help either can classes are dependednt on each other and further to zend library. Commented Sep 9, 2011 at 16:21

1 Answer 1

2
require_once 'Zend/Loader/Autoloader.php';


$autoloader = Zend_Loader_Autoloader::getInstance();

//Now here you can use Zend framework any component as you like to use for your cron to work
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.