I've read quite a few posts related to error handling with cake but
still have'nt managed to work out the best way to handle the following
type of error.

There are many cases where a controller method may have been called via
an URL without the correct parameters being passed. (For example
http://www.myapp/searchController/search relies on a search term being
defined).

In these cases i would like to redirect to a generic error page. I've
tried something like

$this->cakeError('error404', array(array('className' =>
$this->modelClass, 'webroot' => '', 'base' => $this->base, 'action' =>
$this->action)));

This relies on me using the cake404 error page and layout which is not
really what i want to do. Is there a more generic error page that i can
call or should i implement my own error page and simply call
$this->render('myErrorPage')?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to