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

Reply via email to