摘要: yii2.0在浏览器中默认查看控制器下的方法是 http://ltbk.cn/index.php?r=login/login 要是在浏览器上输出 http://ltbk.cn/index.php/login/login就更加方便 下面解决方法: 1. 打开config目录下的web.php,在$co 阅读全文
posted @ 2017-03-29 17:10 py卡卡 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 想要将域名绑定并且在本地浏览器上可以通过此域名浏览 解决办法: 1. 配置 apache\conf\extra\httpd-vhosts.conf 可以复制一条 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ##可以不 阅读全文
posted @ 2017-03-29 16:40 py卡卡 阅读(135) 评论(0) 推荐(0) 编辑
摘要: yii\web\Request::cookieValidationKey must be configured with a secret key. 出现的错误表示没有设置 cookieValidationKey 解决方法: 打开 basic\config\web.php 设置代码如下 阅读全文
posted @ 2017-03-29 16:25 py卡卡 阅读(1940) 评论(0) 推荐(0) 编辑