Hey why cant u try the $form->input option.
Its quiet easy.
<?php echo $form->input('SamplingDetail.sampling_address',
array('error'=>'Sampling Address cannot be left empty','div' =>
'mandatory','type'=>'textarea','label' => 'Sampling Address', 'rows' => 3,
'cols' => 35)); ?>
Regards
Sijo
On Fri, Dec 12, 2008 at 7:31 PM, leberle <[email protected]> wrote:
>
> hi all :) one simple (i guess) question: i'm using the inputs method
> for creating several input-elements in my view. i want one field to be
> a textarea, i used
>
> $html->inputs(
> [...bunchofotherinputs],
> 'mytextfield' => array('type' => 'textarea', 'cols' => 2),
> [...]);
>
> The generated input gets the textarea-option but fails to get the
> number of cols i definied...so i got a textarea thats way to largs.
> Someone can help me with that?
> >
>
--
Sijo Jose Chakramakkil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---