Re: Capture views output into a file?
Thanks for the suggestions! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Capture views output into a file?
Hi Nancy: 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 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! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Capture views output into a file?
Look at the controllers render method, that should be what you want to begin with: http://book.cakephp.org/view/57/Controller-Methods#render-428 Enjoy, John On Jan 5, 2:39 am, Nancy 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! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Capture views output into a file?
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! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en