Re: 'required' field in form view

2008-02-01 Thread aaron bauman
is there a way to do this through the Model or Controller instead of through the View? ie. with the validates property of the Model? it seems very unmaintainable and unwieldy to have to set the class for every form field in every view... On Jan 23, 5:32 pm, francky06l [EMAIL PROTECTED]

'required' field in form view

2008-01-23 Thread Greg Baker
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

Re: 'required' field in form view

2008-01-23 Thread francky06l
you can set the class of the div : $form-input('Creditcard.', 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