News Feed
Sections




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

Robert Basic's Blog:
Grouping Zend Framework controllers in subdirectories
April 18, 2011 @ 09:08:25

Robert Basic has a new post today showing you how you can group your controllers in your Zend Framework application into subdirectories for easier organization.

Thanks to a discussion on the Zend Framework mailing list I learned about a new feature, a feature that allows for grouping action controllers in subdirectories! Well, this is more of an unknown and undocumented feature than new, as it is the part of the framework for at least 3 years. Why am I so hyped about this? Because it allows for better code organisation on larger projects. Heck, it might be useful on smaller ones too.

He gives an example of how it might be laid out and a few helpful hints he learned when trying it out:

  • The subdirectory separator in the URI is the underscore and not the slash.
  • The subdirectory name is uppercase: Subdirectory, not subdirectory. In the URI it's lowercase.
  • The view directories for these subdirectories are lowercased, and not uppercase.
0 comments voice your opinion now!
zendframework controller subdirectory group


blog comments powered by Disqus

Similar Posts

Gopal Vijayaraghavan's Blog: PHP Noodle Soup!

Zend Developer Zone: ZendCon Sessions Episode 38: Reusable Bootstrap Resources with Zend_Application

Federico Cargnelutti's Blog: An Alternative to Zend_Controller: Introduction

PHPMaster.com: Generating Invoices with Zend_Pdf

Rdavid.net: Test Results on Memory Usage of Zend Framework and Doctrine with APC


Community Events





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


configure interview community wordpress release api unittest introduction laravel code list series podcast install library application testing language threedevsandamaybe developer

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