hey dood,
I use the same method.
try :
$my_email_content =
$this->requestAction('my_controller/my_email_action',array('return'));
HTH,
mikee
On 17/01/07, lo_fye <[EMAIL PROTECTED]> wrote:
I'm new to Cake, but I get MVC.
I'm trying to figure out how to get the final rendered page (layout &
view) into a variable, so I can use it as the body of an HTML email.
Is there a way to grab that (output buffering?) and prevent rendering
on the screen?
Right now the files I have are:
/controllers/mailer_controller.php
/views/layouts/email.thtml
/views/confirmationMessage.thtml
Thanks,
Derek
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---