Hi, I'm currently toying with the idea of a user definable form. This would allow a site administrator to create new forms to capture various data, and report on the data in the admin section.
I've got the basic data structure, being a forms table, having many form_fields, each having one form_field_type, and storing information into form_field_responses There are 2 approaches I'm playing with to do this. Approach 1 would be a simple helper which can be used to autogenerate the form. This would require the data for the form structure to be passed to the view in each method. Approach 2 is to use a behavior with a generateForm method that overwrites $_schema (based on form_fields and form_field_type) to facilitate auto-form generation leveraging the form helper's inputs() method. anyone got any thoughts on the best approach for this sort of thing? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
