You could create your own helper that extends FormHelper, and just
overload the appropriate functions that you want modified (like the
error() function).

Or, if you want all the <div>s created to be <p>s, you might be able
to do something like

$form->Html->tags['block'] = '<p%s>%s</p>';
$form->Html->tags['blockstart'] = '<p%s>';
$form->Html->tags['blockend'] = '</p>';
echo $form->input('Your.field');

But honestly it's probably easiest just to modify your CSS - what's so
special about a <p> that you can't do with a <div> ?


On Nov 15, 3:46 pm, Action <[EMAIL PROTECTED]> wrote:
> I don't like the fact that the Form Helper outputs its error message
> using divs. How could I go about change it so it uses <p> tags
> instead, for example?
>
> The same goes for the divs used by setFlash()
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to