Hi,
I want to hide the parameters from url. I create the url by using createUrl as Yii::app()->createUrl('/',array('catSlug'=>$data->subcategory->category->slug,'subcatSlug'=>$data->subcategory->slug,'slug'=>$data->slug.'.htm'));.
the url is shown as http://localhost/myapp/catSlug/education/subcatSlug/schools/slug/bces.htm
but i want it as http://localhost/myapp/education/schools/bces.htm
and urlManager setting in config main.php is as
‘urlManager’=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'caseSensitive'=>false,
'rules'=>array(
'<catSlug:\w+>/<subcatSlug:\w+>/<slug:[a-zA-Z0-9-]+>.htm'=>'page/view',
'education/<slug:\w+>.htm'=>'page/subCatgoryList',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
where i make the mistake?