摘要: 通过urlmanager实现yii地址美化,需配合服务器中的rewrite配置1、在'components'中加入'urlManager'=>array('urlFormat'=>'path',//使用pathinfo模式,不需要?r='showScriptName'=>false,//隐藏index.php'rules'=>array(//这里面写规则,下文再做解释'pattern1'=>'route1','pattern2&# 阅读全文