This is my URL:
http://localhost/techsupportscam/index.php/question/search/2?category=XP+Support
Now I want to convert into something like this:
http://localhost/techsupportscam/index.php/question/search/2/XP+Support
My Controller is question
and method is search
.
My link is:
<?php echo Yii::app()->createUrl('question/search/',array('id'=>$subCategory->id,'category'=>$subCategory->title)); ?>">
How I can do this? Can you guys please help me?
Thanks
You can achieve this as this on CUrlManager rules,