0

On web forms in application created with CakePHP, instead of column names as labels (next to input text fields), I need to display field comments.

Can you tell me which will be best way to accomplish this?

1
  • 1
    Did you try anything? Can you add some code? In its current format, this question is too vague to be answered. Please read the faq to learn what kind of questions should be asked here Commented May 1, 2013 at 19:36

1 Answer 1

1

You can use this code:

echo $this->Form->input('field', array( 'before' => 'Description of the field', 'label' => false )); 

and it will output:

<div class="input"> Description of the field <input name="data[Model][field]" type="text" value="" id="ModelField" /> </div> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.