News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney's Blog:
Autoloading Doctrine and Doctrine entities from Zend Framework
August 21, 2009 @ 08:47:35

Matthew Weier O'Phinney has a new post on something he's been asked about a lot - autoloading Doctrine into a Zend Framework application.

A number of people on the mailing list and twitter recently have asked how to autoload Doctrine using Zend Framework's autoloader, as well as how to autoload Doctrine models you've created. Having done a few projects using Doctrine recently, I can actually give an answer.

His short answer - "attach it to the Zend_Loader_Autoloader". For those needing the long answer, he goes through a simple example of creating the loader object, registering a new namespace and pushing in the Doctrine functionality as an autoloader. The bootstrap class can then be modified with an "_initDoctrine" method to pull in just what scripts your app might need.

0 comments voice your opinion now!
autoload doctrine zendframework orm


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Announcing the November 2010 Zend Framework Bug-Hunt

Cal Evans' Blog: I called Zend_Json::encode(), so WTH are all my properties?

ProDevTips.com: Ajax, ZF and Smarty feed reader (Part 2)

Joey Rivera's Blog: Automate Db Model Creation with Zend_CodeGenerator_Php_Class

KillerPHP.com: Zend Framework Components Part 2: Zend_View


Community Events

Don't see your event here?
Let us know!


api series php7 framework opinion podcast install symfony2 voicesoftheelephpant laravel community performance introduction example interview version release extension library conference

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework