On Fri, May 27, 2011 at 10:55 PM, Ismael Vilas Boas <[email protected]> wrote:
> Hi,
>
> I was using symfony2 to develop my application based on
> HTML5+Symfony2, and realized that is missing the option to set a
> placeholder on single text forms.
> This could be a nice feature to enable on symfony2, and I think that
> could be very usefull for symfony2+html5 developers like me.
You can set placeholder (and any arbitrary attribute, really) on forms...
$view['emails']->setAttribute('placeholder', 'Enter email
addresses separated by commas...');
I ended up adding that in my form type's `buildViewBottomUp` method,
since the `emails` textarea wasn't available yet in `buildView`
-- justin
--
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 developers" 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/symfony-devs?hl=en