News Feed
Sections




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

Aleksey Zapparov's Blog:
How to handle unexistence controllers/actions with Zend_Controller
October 18, 2006 @ 10:56:00

As mentioned by the Zend Developer Zone in this post, Aleksey Zapparov has posted a quick tutorial on how to deal with a missing action and controller in your Zend Framework application.

You can easily make them call indexController::noRouteAction() on unexistence controllers, but on unexistence actions they'll throw you an exception. So there is a way to change this - modify sources.

His code basicly watches for the exceptions that would be thrown from a missing action and handles then inside a try/catch. If things fail, the user gets shuttled off to the Error404 controller that dumps out the contents of the controller class.

0 comments voice your opinion now!
zend framework controller action nonexistence zend_controller error404 zend framework controller action nonexistence zend_controller error404


blog comments powered by Disqus

Similar Posts

The Bakery: PremierMarinas.com, ScienceHack.com and an iPhone App

Sanisoft Blog: Theming your CakePHP apps (V1.2)

Marco Tabini\'s Blog: $fud- - (Zend Framework Webcast)

Andi Gutmans\' Blog: New Zend Framework Website look launched (almost)

NETTUTS.com: Getting Started With Cake PHP: Part 2


Community Events

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


framework podcast voicesoftheelephpant library series extension interview api install php7 xdebug language opinion laravel5 community example introduction release unittest laravel

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