4

For an application, I am using cakephp with mysql.

I echo the existing contents from the table as:

<?php
echo $form->create('Post',array('action'=>'edit'));

echo $form->input('title');
?>

in the .ctp file.

This displays the title value retrieved from the table as well as 'title' near the text box. I do not want the word 'title' to be displayed near the text box.

How will I achieve this?

Thank you very much in advance.

Lavanya Mohan
  • 1,496
  • 7
  • 28
  • 39

2 Answers2

10
echo $form->input('title', array('label' => false));
deceze
  • 510,633
  • 85
  • 743
  • 889
1
echo $form->input('title', array('label' =>''));
thecodedeveloper.com
  • 3,220
  • 5
  • 36
  • 67