Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
Just for completeness, there are five options that are potential descriptors: - label - before - between (comes between the label and input) - separator - after http://book.cakephp.org/view/1393/options-before-options-between-options-separator-a Jeremy Burns Class Outfit jeremybu...@classoutfit.

Re: Forms and Descriptions

2010-06-10 Thread Flavia Missi
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 > cheers Jeremy! you seem to re

Re: Forms and Descriptions

2010-06-10 Thread Chris Hanson
ye know about label just wasnt sure on after lol thanks :D On 10 June 2010 17:15, Flavia Missi wrote: > 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 somethin

Re: Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
ye i thought about that, but thought there may be a cake wayoh well lol thanks for the help :D On Jun 10, 5:14 pm, Jeremy Burns | Class Outfit wrote: > Wild stab without thinking, researching or testing... > > I think you could do: > > 'after' => 'My description...' > > ...and then style span

Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
Wild stab without thinking, researching or testing... I think you could do: 'after' => 'My description...' ...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 th

Re: Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
is there a way to wrap class around, like after_class? thanks On Jun 10, 4:56 pm, Jeremy Burns | Class Outfit wrote: > User the 'after' option and then apply css: > > echo $this->Form->input( >         'field_name', >         array( >                 'after' => 'Your description...' >         ) >

Re: Forms and Descriptions

2010-06-10 Thread 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 wrote: > User the 'after' option and then apply css: > > echo $this->Form->input( >         'field_name', >         array( >                 'after' => 'Your description...' >    

Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
User the 'after' option and then apply css: echo $this->Form->input( 'field_name', array( 'after' => 'Your description...' ) ); Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Jun 2010, at 16:46, phpcoder2...@googlem

Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
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 site http://cakeqs.org and help others wit