siegmar
(Siegmar)
1
Hi,
I am starting to use Yii and would like to test some Componentes.
For instance: I want to use a CHtml:imagebutton.
But where do I find the options description for "$htmlOptions" below:
public static string imageButton(string $src, array $htmlOptions=array ( ))
I have already downloaded "Definitive Guide", "BLOG System" and "API".
The "API" CHM shows the method, but not the parameters.
Thanks
qiang
(Qiang Xue)
2
sclark
(Smclark89)
3
From what I understand (which is very little), I think html options just inserts an html tag with whatever you pass it. For example, putting:
array('id'=>'maliciousScript')
in the htmloptions part would make your element have id="maliciousScript". But hopefully you wouldn't be putting that id anywhere…