Sep
21
2012
21
2012
Add CSS attributes to Symfony form label
You can add custom CSS attributes like class or id to Symfony form labels as following.
1 |
<?php echo $form['fieldname']->renderLabel(null, array('class'=>'anyclass')); ?>
|
Passing null as the first parameter won’t override the label text.
Tags: symfony, symfony for label
1 Comment + Add Comment
Leave a comment
Ads
Ads
Subscribe by Email
Tags
addition subtration in date
apache
apache configuration
blur() and focus()
CI
codeIgniter
custom post types
custom post types and taxonomy in wordpress
custom taxonomy
date function
discount coupon
dofollow
drupal6.x
drupal regions
el is null
facebook page
free psd
free web designs
git
git commands
howto
jquery
magento
magento 1.5
magento 1.5.0
magento 1.5.1
magento cms
mod_rewrite
ms access
multi store
nofollow
odbc
opencart
php
php date function
psd
seo
seo article
store themes
subcategory names and images
text-indent ie7
tutorials
virtual hosts
windows 7
wordpress

An article by






Thanks for sharing.