I am currently using CakePHP "automatic" field elements for my CRUD forms.
By this I mean that I use
echo $form->input('fieldname', $options);
to generate everything.
This selects the correct element type and wraps everything in a div with the label <label> of the element.
Now I have some fields that cannot be edited, but I would like them to be displayed (so there really would not be a label, just a range, and instead of an <input> control, just text or a range.
I should also be able to arbitrarily control the contents of the "field value".
Is there a way to do this with $ form-> input?
I know that I can just create markup for all this, but it would look pretty ugly and very repeatable.
Thank!
Daniel
source
share