Ok, i have see that is very simple. i can call my class with:
sfMixer::register('sfException:printStackTrace', array('myErrorMailer',
'log500'));
sfMixer::register('sfController:forward:error404', array('myErrorMailer',
'log404'));
In the global config.php the mixer not excist and in the app config.php it not
work ;(
// include project configuration
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
// symfony bootstraping
require_once($sf_symfony_lib_dir.'/util/sfCore.class.php');
sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);
sfMixer::register('sfException:printStackTrace', array('myErrorMailer',
'log500'));
sfMixer::register('sfController:forward:error404', array('myErrorMailer',
'log404'));
So how can i place it?
Greeting
Gordon
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von
Franke Gordon
Gesendet: Freitag, 23. März 2007 08:51
An: [email protected]
Betreff: [symfony-users] AW: [symfony-users] Re: mail on error
Thanks. But the link tot he screencast is borken ;(
Greetings
Gimler
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von
Fabien POTENCIER
Gesendet: Freitag, 23. März 2007 08:28
An: [email protected]
Betreff: [symfony-users] Re: mail on error
Hi Franke,
You can send an email when an exception is thrown. Have a look at the
sfErrorLoggerPlugin to see how it works. Basically, you will have to
register a mixer.
Fabien
Franke Gordon wrote:
> Hallo,
>
> is there a function to send a mail on an exception.
>
>
> greetings
> Gordon
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---