Hi Matt,

A possible solution would be to use wget to do the bulk of the work
for you. I did this with cake not too long ago and it worked really
well. With the recursive option it can automatically download linked
pages, images, css, javascript, etc, and replace the links with
relative links.

Then just run a zip command over the generated files and you're
laughing.

As long as you can use exec() on your server, the above will only take
a few lines of code.

Cheers,
Adam

On Apr 3, 8:24 am, Matt <[EMAIL PROTECTED]> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to