News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Jonathan Snook's Blog:
Easier Static Pages for CakePHP 1.2
February 05, 2008 @ 08:44:00

Jonathan Snook has posted about a method he's using to make the creation/use of static pages in a CakePHP application (or website) simpler.

Traditionally in a CakePHP application, to do static pages you have two options: use the built-in Pages controller or set up an empty action in a controller.

Feeling that neither of these two options met how he wanted things to work, Jonathan (and Nate Abele) developed a class that extends the error handler in the CakePHP framework to handle "missing" actions and controllers. This means that, if an unknown controller/action combo is called, this script will check in its correct location (in the structure of the site) and try to find it to render it.

0 comments voice your opinion now!
cakephp framework static page error handle missing controller action



Similar Posts

PRADO Watch Blog: PRADO Watch: Interview With Timani Tunduwani - Why I Moved From CakePHP to PRADO

Shane O'Sullivan's Blog: The Cake PHP MVC framework and its Amazing Technicolor Documentation

Professional PHP Blog: Zend Framework Webcast

Daniel Vecchiato's Blog: Using Zend Framework components in Code Igniter

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 7: Zend_View Enhanced


Community Events











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


book cakephp mysql database release developer ajax package job code application zend PHP5 releases zendframework example PEAR framework conference security

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