开发者

Zend Framework and Doctrine

开发者 https://www.devze.com 2023-02-09 08:34 出处:网络
I am trying to integrate Doctrine into my Zend Framework application. In my index, I do following: require_once \'Zend/Lo开发者_运维问答ader/Autoloader.php\';

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?

0

精彩评论

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