I'll try with plugin namespces, thanks. About having option (setClassName()),
I don't see how can you use it, because rendering is initialized and
triggered by Zend_Form_Element_Select, maybe you can subclass it, but this
leads to complications. Or I'm missing sth?
Regards,
Saša Stamenković
On
I achieved this with my custom view helper:
?php
/**
* Select with custom css helper.
*
* @package Forms
* @author Sasa Stamenkovic umpir...@gmail.com
*/
/**
* Select brand helper, options class customization.
*
* @package Forms
*/
class Umpirsky_View_Helper_FormSelectCustom extends
Саша Стаменковић wrote:
class Umpirsky_View_Helper_FormSelectCustom extends
Zend_View_Helper_FormSelect {
Hi Saša,
Good solution, which I would have suggested if same classes for all the
options wouldn't suffice.
Little suggestion: name your class Umpirsky_View_Helper_FormSelect and
add
Anders Gunnarsson wrote:
I'm creating a select box, and adding the options using
addMultiOptions.
How can I set CSS Class to the option-tags?
select
option class=myClass value=11/option
option class=myClass value=22/option
option class=myClass value=33/option
/select
Afaik, you can't,