you can set the class of the div : $form->input('Creditcard.xxxx', array('div' => array('class' => 'required')));
hth On Jan 23, 7:28 pm, Greg Baker <[EMAIL PROTECTED]> wrote: > I have two models: Application & CreditCard... > The application requires a user to input their credit card > information, so instead of having a credit_cards_controller and > related views, I just use the application add view. > > My problem is that the credit card information is required, but since > I'm using $form->input('CreditCard.xxxx') in my view it doesn't add > the 'required' class to the input div. > > Is there a way to get $form->input() to check whether or not the > credit card fields are required? > Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---