News Feed
Sections




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

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


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney' Blog: Zend_XmlRpc_Server

ServerGrove Blog: Easily manage multilingual sites with the new TranslationEditorBundle for Symfony2

DevShed: Generating View from MySQL to Simulate the Model-View-Controller Schema in PHP

Aleksey Zapparov's Blog: How to handle unexistence controllers/actions with Zend_Controller

Agile Toolkit Blog: Which PHP Framework is the Fastest?


Community Events





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


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

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