Thankyou Paul for your suggestions. Creating a webform markup generating UI was an initial requirement that has now changed into this - everything gets saved into our db.
I have so far being using my own markup rendering methods to generate the html that is sent asynchronously to the UI. I have to refactor this and use the form helper better. I guess a demo will be possible in a couple of months, not right now (NDA etc) :) So I guess the best solution would be to use the form helper as much as possible without creating a mechanism to render html (eg using a very OOP way of doing this by building tags etc). Will wait for more suggestions before doing the refactoring on this one. On Feb 9, 2:34 pm, WebbedIT <[email protected]> wrote: > Sounds an interesting idea and I would love to see a demo too. I'm > assuming there are no databases involved here that you are using ajax > calls to build the source code for a HTML web form that the user can > then copy/paste to use in their own site? Could this be developed to > work with a database as a lot of my clients prefer their responses to > be stored and interrogated at a later date. > > My uneducated view is that I personally do not see a problem with a > switch in the ajax call's view/element to run whichever flavour of the > form helpers $form->input() statement is required. > > OK it's not entirely separating HTML from PHP logic, but to create > multiple elements rendered on conditional statements from the > controller would mean each element is likely to contain not much more > than <?php echo $form->input('name', array($options)); ?> which is why > the helper was created in the first place. > > Paul. 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 [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
