Create app_error file;
<?php
class AppError extends ErrorHandler {
function _outputMessage($template) {
$this->controller->log($this,'err');
$this->controller->beforeFilter();
parent::_outputMessage($template);
}
}
?>
Taken from here:
http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/
-- <?php
class AppError extends ErrorHandler {
function _outputMessage($template) {
$this->controller->log($this,'err');
$this->controller->beforeFilter();
parent::_outputMessage($template);
}
}
?>
Taken from here:
http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/
On Tue, Nov 22, 2011 at 8:23 AM, rach <rachna.emails@gmail.com> wrote:
Hi,
We are using PHP 5.3.5, and cakePHP 1.3.7. We are not able to mask the
error messages we are getting - 'Strict Standards", "Fatal errors".
The problem we are running into is -
We tried this solution.....
Configure::write('debug', 0);
and
Configure::write('log', false);
in core.php but it did not work.
Currently we are commenting echo $_this->_output($data); in
debugger.php to stop notice/warnings but we are unable to stop strict-
standard/ Fatal errors
Right now, we cannot move to a diff. version of CakePHP as we have an
upcoming imp. milestone and so we want to avoid any regressions that
might happen as a result of moving to a diff. version. We may try that
later on.
We are looking to -
1.) either mask the errors we are getting?
2.) any other way to handle these errors so that they do not get
displayed to a user?
thanks!
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment