Andrew Steven
Andrew Steven

Reputation: 11

Using Custom Zend Application Classes from outside

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!

Upvotes: 1

Views: 414

Answers (1)

Mr Coder
Mr Coder

Reputation: 8196

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

Upvotes: 2

Related Questions