I'm currently using CakePHP's "automagic" field elements for my CRUD forms.
By this I mean I'm using the
echo $form->input('fieldname', $options);
method to generate everything.
This chooses the correct element type, and wraps everything into a div with a <label> element.
Now I have some fields that are not editable, but i'd like for them to show (so there wouldn't really be a label, just a span, and instead of the <input> control, there'd be simply some text, or a span.
I also need to be able to control the contents of the "field value" arbitrarily.
Is there a way to do this with $form->input?
I know I can simply generate the markup for all this, but it'd look pretty ugly, and it's very repetitive.
Thanks!
Daniel