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




array(

                'class'=>'bootstrap.widgets.TbButtonColumn',

                '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…

http://www.yiiframework.com/forum/index.php/topic/26021-composite-primary-key-and-urlmanager/

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

http://evileyegames.com/article/42-generating-urls-composite-keys-yii-framework