This is a hack as I could not figure out how to render an view without it displaying on screen.
What I wanted to do was render the email and then keep the output in a variable. Then send that as an email and render / display another view for the thank you page.
What I came up with was this.
/*Stores everything that is currently going to be print to screen in var $x */ $x = $this->output; /*Render you element and save to $htmlemail*/ $htmlemail = $this->render('emails/thankyou','email'); /*Set your output back to what it was just before rendering your extra view / layout*/ $this->output = $x;
By PHPin24 @ 2009-08-11 10:13:49
|