Urlencode() Expects Parameter 1 To Be String, Array Given

I can not understand anything the global did not, I put to show the button in CGridView



                'htmlOptions'=>array('style'=>'width: 50px'),


it gives me:

UrlManager in config set standart:

'urlManager' => array(

            'urlFormat' => 'path',

            'showScriptName' => false,

            'rules' => array(

                '<controller:\w+>/<id:\d+>' => '<controller>/view',

                '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',

                '<controller:\w+>/<action:\w+>' => '<controller>/<action>',



I have the same problem… it is caused by the .htaccess and the ‘urlManager’ in the main.php…

It seems to be a bug in the CGridView, when you enable the SEO

Could you solve the problem?

I found this Article… It helps me to resolve my problem…


Replied to another topic with this same thing, but I wrote this article that could be of help here.