Wild stab without thinking, researching or testing...

I think you could do:

'after' => '<span class="description">My description...</span>'

...and then style span.description.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 10 Jun 2010, at 17:00, phpcoder2...@googlemail.com wrote:

> is there a way to wrap class around, like after_class? 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 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 For more options, visit this group at 
> http://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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to