Captcha refresh button

Hey All,

i am trying to create a captcha with a refresh button and not a link, however i get a php error:

Fatal error: Cannot unset string offsets in C:\myserver\yii\framework\web\helpers\CHtml.php on line 1905

my code:

$this->widget('CCaptcha',array('buttonLabel'=>'text','buttonType'=>'button','buttonOptions'=>array( 'type'=>'image','src'=>'images/refresh-icon.png')));

any help would be great

Just tried your code… works for me without error… try with the latest Yii version from SVN trunk or nightly snapshot on the download page…

thanks for your help, it worked :)