Hi Passing the schema and validation rules seems like a good idea - I'm guessing your are thinking you could couple it with some kind of wizard / interface so you build your forms within the CMS... could be a really goood feature but at the end of the day it boils down to how long the initial development time takes to recoup.
I've been pondering this kind of thing too but hadn't made any attempt to build it yet! On Nov 18, 11:42 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > Hi bakers, > > > Got a theory/approach question, hoping someone's been down this route > > already. > > > A lot of my projects are CMS'd sites. This largely means a few models: > > > * Page > > * Article > > * Documents (files, images, media etc) > > > Often I have to work with forms, contact forms, email sign ups etc > > that are then embedded in each page, and I'd really like to use the > > cake validation and auto magic, whilst avoiding manually creating a > > model for each form. > > > Is this feasible? Any other ideas? Or am I just over over complicating > > things! > > The other issue I'm grappling with is how to connect a form to a page > or article when the form doesn't have a db table. I would like to have > a HABTM and 'with' to set a few vars, something like: > > FormsPages > - id > - form_id > - page_id > - position (sidebar, end of main content etc) > > But how would i set the validation/schema of 'form' if it has no content? > > What about adding 2 fields to Forms: > > Forms > - id > - name > - schema (serialised obj) > - validation_rules (serialised obj) > > And then passing the values of each to the Form model in beforeValidate? > > Thanks for any insight. > > Cheers, > > Jon > > -- > > jon bennett > w:http://www.jben.net/ > iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---