You don't really have to use FormHelper, though you will need to follow Cake's naming conventions (if you want to avoid headaches). I suggest you first create the view using FormHelper and your model & fieldnames without any regard for the markup and classnames you'd like to have. Then, view source so you can see how Cake names the form elements. Copy & paste those into your existing markup and use that as the view.
On Sun, Mar 15, 2009 at 2:36 PM, Mr. X <[email protected]> wrote: > > Hello. > CakePHP has me really confused at the moment. I would like to put the > form below in place in cakePHP but I can't seeme to find any good tips > for doing so. > As you can see the form has fieldset tags, also preset classes and > id's that CSS uses. > I would very much like to know how do I do this exact form in cakePHP > 1.2 > > Thanks. > > <form action="" method="post"> > <fieldset> > <legend>First slot</legend> > <div class="first"><label > class="fixedwidth">Category:</label> > <select name="cat" size="1"> > <option selected="selected" > value="">Select One</option> > <option > value="">---------</option> > </select> > </div> > <legend>Optional</legend> > <div><label for="unit" > class="fixedwidth">Unit name:</label> > <input id="unit" > class="text_slot" type="text" name="unit" / >> > </div> > <div><label for="quantity" > class="fixedwidth">Quantity:</label> > <input id="quantity" > class="text_slot" type="text" > name="quantity" /> > </div> > <div><label for="cfop" > class="fixedwidth">Cost for 1 piece:</ > label> > <input id="cfop" > class="text_slot" type="text" name="cfop" / >> > </div> > > <div class="save"><input type="submit" > value="Save" /></div> > </fieldset> > > </form> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
