webdev - Zend Framework Devzone
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.
This content syndicated from PHPDeveloper.org. Visit the original content for more commentary.| < Prev | Next > |
|---|
My Twitter
Atir Javid
atirjavid
- feed:
- follow:
- bio:C.E.O Frosted Web, Social Media Marketing & Development | C.T.O. Sky Social Media Inc, former Debian contributor, maintainer and developer. Currently w/FreeBSD.
- web:
- location:Baton Rouge, LA. USA
- updates:389
- followers:136
- following:15
Loading...
Last 0 tweets in past 30 days from atirjavid:
People talking about '@Linux':




















