It is not clear whether this is a 1.1 or a 1.2 question as you have mixed up the helpers.
Assuming 1.2 there is all sorts of automagic that you can use. Best idea is to read nates blog entry on this topic at http://cake.insertdesignhere.com/posts/view/15. As a first start, try <?php e($form->input('year')); ?> and see where that gets you. If it is 1.1 then I don't know as I stopped using it as soon as I realised how much better 1.2 is already. Ianh On Aug 31, 12:10 pm, rtanz <[EMAIL PROTECTED]> wrote: > how can i translate this into cake code? with the form helper > > <label>Year > <input name="year" type="text" id="year" value="<?php echo($year); ?>" /> > > </label> > > im trying to use this but its not working > > <div class="optional"> > <?php > echo $form->labelTag('year', 'Year');?> > > <?php echo $html->input('year', array('size' => '60'));?> > <?php echo $html->tagErrorMsg('year', 'Please enter the Year.');?> > </div> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
