Maybe passing an options array to the input method, with "label"=>"My Label"
inside may work :)
On Wed, May 21, 2008 at 10:10 AM, Travis <[EMAIL PROTECTED]> wrote:
>
> I was reading through the Form helper for 1.2 and couldn't find
> anything that allowed you to change the field name. Here is the code
> I'm using:
>
> <code>
> echo $form->create('Form', array('action' => $form_id));
>
> foreach($form_data['Attribute'] as $attribute) {
> echo $form->input($attribute['name']);
> }
>
> echo $form->end('Save');
> </code>
>
> which outputs the fields roughly like this...
>
> ...
> <div class="input">
> <label for="FormClientName">Client Name</label>
> <input name="data[Form][Client Name]" type="text"
> id="FormClientName" />
> </div>
> ...
>
> I would like the name to stay "data[Form][Client Name]", but I would
> like the label to be something different. Anty suggestions? Thanks!
> >
>
--
Marcos Aruj Alvarez
Ingeniero de Software
-------------------------------
[EMAIL PROTECTED]
-----
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---