Hi, I am using CHtml::imageButton() to display an up arrow to allow the user to vote. I have this working fine, it displays an arrow image with alt text and title text.
How do I link this button to an action in my controller?
On a side note, I tried using CHtml::clientChange() in the image button but I get an error:
Fatal error: Call to protected method CHtml::clientChange() from context 'CBaseController' in C:\xampp\htdocs\test\protected\views\site\index.php on line 24
Can someone explain how I should use clientChange - I don’t really understand.
it’s correct this? I understood of your previous answer the parameter for clientChange should be an array but I get an error in htmlspecialchars complaining just that
after looking into the code (and correcting my mistake of putting ‘submit’, ‘users/create’ instead of ‘submit’ => ‘users/create’ ), the correct way to set a button redirecting to an url is: