Well, I didn't understand the part about why you want to do it, but to
save the output to a file you can either use requestAction
$this->requestAction('/your/action',
array('return','full_layout_please'=>1))

and in your beforeFilter (either in app_controller, or just your
controller) have
if ( @$this->params['full_layout_please'] == 1 ){
        $this->autoLayout = true;
}

This is assuming you want the layout surrounding the rendered view.
If you don't care about the layout, ignore this beforeFilter bit and
just use the requestAction.

Alternatively, if you have the data loaded you can just call render(),
surrounded in output buffering.

ob_start();
$this->render();
$rendered_page = ob_get_clean();


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to