CakePHP - Have the label and form in Form helper on different line
Posted
by teepusink
on Stack Overflow
See other posts from Stack Overflow
or by teepusink
Published on 2010-04-13T23:30:44Z
Indexed on
2010/04/13
23:33 UTC
Read the original article
Hit count: 213
cakephp
Hi,
I'm using this code now
echo $form->input('username');
How do I make sure the label shows up on a different line than the input field?
I managed to imitate what I'm trying to do, just want to make sure that I'm using it the right way.
echo $form->label('username', 'Username');
echo $form->input('username', array('label' => 'false'));
Thanks, Tee
© Stack Overflow or respective owner