Q: how can I make some error pages for different sort of my app
errors?

A1: create file app/app_error.php with class AppError extends
ErrorHandler, implement method (example) AppError::myError($params),
create view app/views/errors/myError.thtml and call it from any
decendent of Object by $this->cakeError('myError', array('blabla' =>
'blah');

A2: AppController::appError($method, $messages) works also (and should
be also called by $this->cakeError('myError', array('blabla' =>
'blah')) but it's implementation is up to You - means no automatic
rendering of some view


--~--~---------~--~----~------------~-------~--~----~
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