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