Hi,
I'm reimplementing a class to send emails (Symfony 1.1). And I'm
trying to use postExecute to fetch the template result and to send an
email.
How can I fetch the template result for my action?
I call myaction in another action trough:
$this->getController()->getPresentationFor('mail', 'myaction');
class mailActions extends sfActions
{
protected $mailObj;
public function preExecute()
{
$this->mailObj = new Mailer();
}
/**
* On the action end
*/
public function postExecute()
{
$result = dummy_method(); // What can I use to obtain the template
result?
var_dump ($result);
$this->mailObj->setBody(strip_tags($result));
$this->mailObj->setBody($result,'text/html');
$this->mailObj->send();
$this->mailObj->disconnect();
}
public function executeMyAction()
{
//set vars
}
Best regards,
Paulo Graça
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---