摘要:
通过urlmanager实现yii地址美化,需配合服务器中的rewrite配置1、在'components'中加入'urlManager'=>array('urlFormat'=>'path',//使用pathinfo模式,不需要?r='showScriptName'=>false,//隐藏index.php'rules'=>array(//这里面写规则,下文再做解释'pattern1'=>'route1','pattern2 阅读全文
posted @ 2013-08-16 16:08
songqiaoli
阅读(1498)
评论(0)
推荐(0)
浙公网安备 33010602011771号