tags:

views:

236

answers:

3

Hi,

The Form helper in cakephp

  echo $form->input('Firstname', array('class'=>'test','name'=>'Firstname','type'=>'text'));

generates me like the following

   <div class="input text">
      <label for="Firstname">Frrstname</label>
      <input type="text" id="Firstname" value="" class="test" name="Firstname"/>
   </div>

is it possible to add a Break between label and input within the DIV .. If so how .. please suggest

+6  A: 

The manual is your friend: http://book.cakephp.org/view/191/options-before-options-between-options-separator-a

deceze
+1  A: 

I would suggest not adding the break.

Just use css:

label{display:block}

would achieve the same result.

peridot
A: 
 echo $form->input('Firstname', array( 'between'=>'<br />','class'=>'test','name'=>'Firstname','type'=>'text'));
Abba Bryant