开发者

Using Custom Zend Application Classes from outside

开发者 https://www.devze.com 2023-04-03 16:08 出处:网络
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_independ

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 开发者_如何学Pythonzend classes.

Any help would be appreciated thanks!


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
0

精彩评论

暂无评论...
验证码 换一张
取 消