News Feed
Sections




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

Court Ewing's Blog:
Zend Framework Modules Autoloading & Namespaces
July 07, 2010 @ 08:39:53

Court Ewing has written up a new post about using Zend Framework modules and things you need to worry about with considering autoloading and namespacing them correctly.

Modules are natively supported in Zend Framework, but their implementation is not conducive to flexible autoloading nor the use of namespaces in PHP 5.3. There may be a few contributors out there that will defend the current implementation of module autoloading, but throughout the development lifecycle of the current Model-View-Controller implementation in the framework, poor design decisions have made working with modules less flexible and more frustrating.

Because of these poor decisions there are a few problems that you'll need to overcome when using modules, specifically in dealing with naming conventions currently in place in the framework and how that can make autoloading more difficult. He has a concept he's worked up to try to help the situation - Epixa, a system for fully namespacing out modules so a simple directory structure correctly reflects the namespacing.

0 comments voice your opinion now!
zendframework module autoload namespace expia


blog comments powered by Disqus

Similar Posts

TechChorus Blog: Zend Framework 1.8 Web Application Development - Book Review

ProDevTips: Writing a CMS/Community with Smarty and the Zend Framework: Part 8

Juozas Kaziukenas' Blog: Zend Framework and Microsoft IIS

The bla.st Blog: Process your URLs in PHP with Apache mod_rewrite and wildcard DNS

Eran Galperin's Blog: Profiling queries with Zend_Db and optimizing them by hand


Community Events





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


podcast interview series symfony install unittest laravel release opinion zendserver package bugfix api introduction deployment framework community voicesoftheelephpant language library

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