Hello list!
I've created an static class, that listents to all events.
For instance when i create an object, i call to the static class
nxListener::processEvent($eventName);
that static function, logs some stuff, and depending on the eventName it
does more things.
One of those actions should be the generation and sending of an email to
someone...
The problem is that as the sendEmail function is in the Components class,
and i'm working on an independent static class, i can't use that function
and as the components class is an abstract class i can't instanciate it.
In the other hand, i need to have controller and templating capabilities for
the emails i send as they will be internationalised. How can i use the
sendEmail capabilities of symfony using an static class?
thank you in advance!
--
- Oriol Mercadé Figueras
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---