fenggege
这个是1.1.16的你参考下吧
// 路由管理 'urlManager'=>array( 'urlFormat'=>'path', // 改用Path路径 'showScriptName'=>false, //允许去掉index.php 'rules'=>array( 'index.html' => array('index'), // 后缀设置为 .html 'a/<aid:\d+>' => array('article/index', 'urlSuffix'=>'.html'), 'c/<cid:\d+>' => array('category/index', 'urlSuffix'=>'.html'), ), ),
Yii2.0 路由规则配置的问题
2.0 o(∩_∩)o- fenggege 发表了说说YII的文档,很Nice啊