I am trying to integrate Doctrine into my Zend Framework application.
In my index, I do following:
require_once 'Zend/Lo开发者_运维问答ader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance()
->registerNamespace('Doctrine')
->pushAutoloader(array('Doctrine', 'autoload'), 'Doctrine');
$manager = Doctrine_Manager::getInstance();
as soon as i call doctrine_manager, my zend framework seems to just die after doctrine autoload takes over.
Any idea what I might be doing wrong?
I've just had a look at my config and the only difference is:
$loader = Zend_Loader_Autoloader::getInstance()->pushAutoloader(array('Doctrine','modelsAutoload'));
$manager = Doctrine_Manager::getInstance();
When you say that you're zend framework dies - are you getting any errors that you can share?
精彩评论