News Feed
Sections




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

Federico Cargnelutti's Blog:
An Alternative to Zend_Controller The Model
April 14, 2009 @ 08:48:46

Federico Cargnelutti has posted the third part of his series looking at his alternative to the normal Zend_Controller in Zend Framework applications - Zf_Controller. This article focuses on its interface with the model.

The domain layer is separated from the other layers and has no dependencies on Zf_Controller. Adding the domain directory to your include path allows you to load and access Model classes from anywhere within your project.

His code examples show an IndexController extending the Zf_Controller and how a Model can be called from inside it through a getInstance (as long as the model directory is in your path). You can take a look at part one and part two for more information on this alternative component.

0 comments voice your opinion now!
zfcontroller zendcontroller model interface getinstance includepath


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: Validating the cleaned output of HtmlHelper::dateTimeOptionTag()

PHPImpact Blog: Improving the performance of Zend_Controller

PHPClasses.org: Software Review - Delphi for PHP 2007

Debuggable Blog: How to paginate a CakePHP search over a HABTM relation without hacking the core

Pierre\'s Blog: Zip, complete rewrite and write mode added


Community Events





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


code threedevsandamaybe community introduction configure podcast install series unittest refactor framework testing opinion release interview laravel experience language developer list

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