Use controller/action output as a string in another action
Anyone knows how to do this? This seems usefull for sending emails etc...
class myController {
function myAction() {
$string = <???????>
mail("my@email.com", $subject, $string);
}
}
where string is the output of a controller/action. I tried to use $this->view->action() but this seem to halt the execution of the current action. Thanks in advance!
|