I am using cakephp, I working on Error Handling
I have follow http://book.cakephp.org/1.3/en/view/1188/Error-Handling I have create AppError My code is app/app_error.php <?php class AppError extends ErrorHandler { function error404() { //$this->controller->set('file', $params['file']); $this->_outputMessage('error404'); } } ?> I am calling this error404 from my controller function userprofile($id = null) { $user = $this->Session->read('user'); if($id != $user['User']['id']) { $this->cakeError('error404'); } } but I found Erro Fatal error: Call to undefined method UsersController::cakeError() in D:\wamp\www\survey\app\Controller\UsersController.php on line 318 I miss some thing? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
