it is exactly what i was hoping to read!!
Thank you very much MIchael and Joby
I will give it a try on monday.
Have a nice weekend!
Cheers
On 5/18/07, Michael Nolan <[EMAIL PROTECTED]> wrote:
>
>
> Which would become:
>
> sfContext::getInstance()->getController()->getPresentationFor($module,
> $action, 'sfMail');
>
> Mike
>
>
> On May 18, 4:13 pm, Joby Walker <[EMAIL PROTECTED]> wrote:
> > Well you could create a concrete subclass of sfComponents (or
> > sfComponent). But all the sendEmail method does is:
> >
> > return $this->getController()->getPresentationFor($module, $action,
> > 'sfMail');
> >
> > jbw
> >
> > Oriol Mercadé wrote:
> > > 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
>
>
> >
>
--
- 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
-~----------~----~----~----~------~----~------~--~---