Hi!

You can define a label for the input too, look like this:

$form->input('input_name', array('label'=>'label name',
'after'=>'description for input'));

Sorry if I wrote something wrong, I'm brazilian! ^^

Hope it helps...

2010/6/10 phpcoder2...@googlemail.com <phpcoder2...@googlemail.com>

> cheers Jeremy! you seem to reply to everyone's issues :D lol thanks!
>
> On Jun 10, 4:56 pm, Jeremy Burns | Class Outfit
> <jeremybu...@classoutfit.com> wrote:
> > User the 'after' option and then apply css:
> >
> > echo $this->Form->input(
> >         'field_name',
> >         array(
> >                 'after' => 'Your description...'
> >         )
> > );
> >
> > Jeremy Burns
> > Class Outfit
> >
> > jeremybu...@classoutfit.comhttp://www.classoutfit.com
> >
> > On 10 Jun 2010, at 16:46, phpcoder2...@googlemail.com wrote:
> >
> >
> >
> > > Hey guys building a form and not sure how to go about adding
> > > descriptions to each input, from what ive seen there is no description
> > > option in the $form->input(); does anyone know of a simple way to
> > > achieve this?
> >
> > > thanks
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
> > >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Flàvia Missi

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to