zw1019
- zw1019 回答了问题 yii2 分页链接的url美化
components:
//url美化 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ '<controller:\w+><action:\w+>/<id:\d+>/<p:\d+>'=>'<controller>/<action>', ], ],
nginx:
location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php?$args; }
- zw1019 提出了问题yii2 分页链接的url美化
- zw1019 2016-07-11 已签到连续签到1天,获得了5个金钱
- zw1019 赞了回答
在 控制器 里面
var_dump($this->id, $this->action->id);
在 视图 里面
var_dump($this->context->id, $this->context->action->id);
- zw1019 收藏了教程Yii 2.0 数据库查询
- zw1019 2016-03-30 已签到连续签到1天,获得了5个金钱