Hi,

I using this app_error handler:

<?php
class AppError extends ErrorHandler{

    function __construct($method, $messages) {
        Configure::write('debug', 2);
        parent::__construct($method, $messages);
    }
    function _outputMessage($template) {
        $this->controller->render($template);
        $this->controller->afterFilter();

        App::import('Core', 'Email');
        $email = new EmailComponent;

        $email->from = 'CakePHP <[email protected]<>';
        $email->to = 'Developer <[email protected]>';
        $email->sendAs = 'html';
        $email->subject = 'Error!';

        $email->send($this->controller->output);

        $this->controller->output = null;
        $this->controller->render('error404');
        echo $this->controller->output;
    }
}
?>

How can I also send the referer in order to see what link the user
used to get to this 404 error page?
Any ideas?

Thanks folks!

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to