Matt Curry wrote an HTML cacher helper that writes the entire view to
a file and saves it in the webroot. Check out his helper code -- it
seems to be doing exactly what you're after; writing the view to an
HTML file.
http://github.com/mcurry/html_cache
http://github.com/mcurry/html_cache/blob/master/views/helpers/html_cache.php
On Jan 4, 7:39 pm, Nancy <nancy.milli...@gmail.com> wrote:
> I'd like to be able to automatically generate a file from the output
> of a view. Can anyone point me in the right direction? I don't see
> any file i/o available to views, maybe I'm just missing it.
>
> Thanks!
No comments:
Post a Comment