In my model (Hvbasicinfo), I have arrays:
[Name] => Array
(
[First] => Karen
[Last] => Kerry
)
[Gender] => Female
Validating Gender is simple with a rule like:
'Gender' => array('rule' => VALID_NOT_EMPTY,'required' =>
true, 'message' => 'Gender required.'),
But in my edit form, I have fields for First and Last of the Name
array.
I want both to be non-empty.
Rendering the fields on the form is simple:
echo $form->text('Hvbasicinfo.Name.First', array('type' => 'text',
'size' => '20'))
But I can't figure out the syntax for how to do that. Or if it is even
possible?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---