. Updated Daily. Editions SDA India   SDA Indonesia
BUSINESS ENTERPRISE SOLUTIONS ARCHITECTURE INFORMATION SECURITY WIRELESS & MOBILITY DATA & STORAGE DEVELOPMENT HARDWARE













News

Friday, 16 March 2007

Overview of 404 Error with Zend Framework Front Controller

 

 

Alexander Netkachev in a post over his blog gives an overview of 404 Error with Zend Framework Front Controller. He says, he found a useful tip to handle the situation when Front Controller is unable to dispatch the request. He shows how to display 404 error page instead of Zend_Controller_Dispatcher_Exception with message ‘Invalid controller specified’.

He says the common solution for this is to create a front controller plugin. The plugin detects whether the request is dispatchable and changes module/controller/action to appropriate action that will handle the request. He gives a code to illustrate this statement.

He informs that a solution that implements the same technique can be found on the Richard Lord's post on Managing 404 errors in the Zend Framework. Alternatively, he says, you can catch Zend_Controller_Dispatcher_Exception after dispatch and call the corresponding action directly. Again he explains this with a code example.

 

Read the Post

 
 
print save email comment

print

save

email

comment

 
 

Search SDA Asia

Free eNewsletter

SDA Asia Magazine Free Download
 
 
 
Copyright @ 2009 SDA Asia Magazine - All Right Reserved Privacy Policy | Terms of Use