errorHandler when debug = 0

2010-11-13 Thread deathwebo
Hello everyone, i need to keep track of the errors in my cakephp app
even when it's in production (debug = 0 ). the Debugger class has this
errorHandler function, which only works when debug > 0. I want to call
this function even when debug is 0 so the function can write in the
debug.log. The thing is i don't want to display the message to the
user so i guess i can comment the line that says :

echo $_this->_output($level, $error, $code, $helpCode, $description,
$file, $line, $context);

At least i want to know where is this function called ? the
errorHandler( ).

Any help or hint would be appreciated ;)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


$ajax->link inside a controller

2010-08-17 Thread deathwebo
Hello everyone. the thing goes like this : I have a menu in my wepage
that its always visible for  user navigation. In my app i have a Help
button in the menu, when you click that button it will appear a new
div with information of the place your visiting right now in the app,
depending on the information given by the $this->params['controller']
and $this->params['action'].

The thing is that that div is updated by the button in my menu, so its
an $ajax->link() but the thing is that i cant use ajax links in the
controller, and i dont want to refresh the page and nothing like that,
what can be done in these situation ? thanks everyone!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en