Hi,

I would like to take the results of a form post and use a controller
action to render a view and write it to a file on the file system.
So, in essence, I'm using the view as a file template so that I can
write the data to the file system in various formats.

Basically, I'm taking very large forms, saving a few fields of data in
a model for searching later, but writing the whole form post to a file
for display later.  The form definitions are saved in the database, so
that the admin can add/remove fields and re-render the form at any
time to be completed by users.  I don't need to save all 150 form
fields to a model, as most of the information is not supposed to be
searchable and is fairly static.  Also, the form questions will change
over time.   So, I want to write the whole thing out as an html file
that can be found by searching a few key fields and pulled from the
file system for viewing.

I see that $controller->requestAction returns the results to a
variable, just wondering about performance, if there was any benefit
to doing this in a more direct way, since the 'action' I'm requesting
is really built only for this reason.  In other words, I'm not going
to use the controller method ever to display the results to the
browser, I just want to build a simple tool to parse form submissions
into various formats, a simple template tool, without re-inventing the
wheel.

Thanks,
Brian


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