我试图设置Zend Framework和Doctrine.
以前曾经和ZF 1.8讨论过
> Integrate Doctrine with Zend Framework 1.8 app
该讨论没有考虑到AutoLoader / Bootstrap系统.
如果我使用./zh.sh生成应用程序框架,我将如何整合Doctrine.
找到一个解决方案
http://pastie.org/481635
http://pastie.org/481633
在application / configs / application.ini中设置自动加载程序和插件路径:
autoloadernamespaces.0 = "Doctrine" pluginpaths.ZendX_Doctrine_Application_Resource= "ZendX/Doctrine/Application/Resource"
在public / index.PHP中添加模型和生成模型的路径
set_include_path(implode(PATH_SEPARATOR,array( realpath(APPLICATION_PATH . '/../library'),realpath(APPLICATION_PATH . '/models'),realpath(APPLICATION_PATH . '/models/generated'),get_include_path(),)));
将http://pastie.org/481633保存到库/ ZendX / Doctrine / Application / Resource / Doctrine.PHP