最新消息: 新版网站上线了!!!

yii2.0 网址伪静态管理

Yiiframework 2.0, By default, The default controller is ‘site’ and action is ‘index’. We will call this like ‘site/index’. If we want, we can customize this using ‘defaultRoute’ parameter in web.php.

01 ........
02 $config = [
03     'defaultRoute' => '/tblcategory/index',
04     'components' => [
05         'urlManager' => [               
06             .....
07             'rules' => array(
08                     .....
09                     ),
10 -->

转载请注明:谷谷点程序 » yii2.0 网址伪静态管理