Hi,
problem appears only if i use ‘urlFormat’=>‘path’. urlManager configuration:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
),
),
I also did try adding rules, this didn’t help:
'<controller:\w+>/<action:\w+>/*' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
CGridView generates urls like this for filter ajax requests:
http://site.com/metadatatype/admin/MetadataType_sort/name?ajax=yw0&MetadataType%5Bid%5D=5&MetadataType%5Bname%5D=&MetadataType%5Bdesc%5D=&MetadataType_page=1
Those urls are wrong and filtering doesn’t work for me.
What are all those symbols "%5B %5D %5B" for?
I am also getting strange urls from sorting and paginator. Wrong paginator url example:
http://site.com/metadatatype/admin/%2Fmetadatatype//MetadataType_page/2
Wrong sorting url example:
http://site.com/metadatatype/admin/%2Fmetadatatype//MetadataType_sort/name
If i set params to empty arrays i will get correct urls for paginator and sorting:
$dataProvider = new CActiveDataProvider('MetadataType', array(
'pagination' => array(
'params' => array(),
'pageSize' => 4,
),
'sort' => array(
'params' => array(),
'defaultOrder' => array('id' => false),
)
));
How can i get correct urls for filter?
Thanks