In your Controller:
$view =& ClassRegistry::getObject('view');
>From this you can call $view->render();
Matt wrote:
> Hello group,
>
> One of my Controller methods generates a zip file containing parts of
> my application which can be viewed in a standalone mode. One of its
> key functions will be to render some of the app's pages to .html files
> and add them to the zip.
>
> I'm fairly new to Cake and not au fait with how it's internals work. I
> see that the function View::render() exists and returns a string, but
> I can't figure out how to get from my Controller or Model to it's
> corresponding View.
>
> How can I get hold of a View object and call that render() function?
>
> Many thanks,
> Matt.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---