Tags

, , ,


When I’m trying to create a input using cakephp form helper its automatically generated a label.

// when I'm trying to use 
<?=$form->input("User.name");?>
//it generated the following code
<div class="input text">
  <label for="UserName">Name</label><input type="text" id="UserName" name="data[User][name]">
</div>

I can get rid of label from the following code

<?=$form->input("User.name",array('label'=>false))?>
<div class="input text">
<input type="text" id="UserName" name="data[User][name]">
</div>

its very simple but sometime this type of issues killing our most valuable time.

Advertisements