On 06/04/2010 10:00 PM, fRAnKEnSTEin wrote:
Hi there,
Is there any way of rendering a form widget as a label? for example if
i have a form called ""fooForm" defined as:
...
...
public function configure()
{
...
...
$this->setWidgets(array(
'price' => new sfWidgetFormInputText(),
));
...
...
}
then in my template:
<div> <?php echo $form['price']->render() ?> </div>
Instead of rendeing the widget as an input text element, i need to
render it like a label element. I have searched is there is any
"sfWidgetFormLabel" or something but there is not.
Any idea?
Cheers
You can create a formatter class to place the widget's elements.
Javi
--
Javi
Ubuntu 8.04 - Symfony 1.3
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en