这是我的网址:
http://localhost/techsupportscam/index.php/question/search/2?category=XP+Support
现在我想转换成这样的东西:
http://localhost/techsupportscam/index.php/question/search/2/XP+Support
我的控制器是question
,方法是search
。
我的链接是:
<?php echo Yii::app()->createUrl('question/search/',array('id'=>$subCategory->id,'category'=>$subCategory->title)); ?>">
我怎么能做到这一点?你们能帮帮我吗?
谢谢