84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
按照它的官网配置的教程:http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html
新建UserController
UserController
配置config/web.php
config/web.php
还要再作其它操作吗?现在的情况是,所有的网站都404了
404
配置了 rules 之后,全站报500。。。我也是醉了。
闭关修行中......
慢慢看文档,官方都是说明吧
.htaccess配了吗?需要放在web目录下
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php [L]
慢慢看文档,官方都是说明吧
.htaccess配了吗?需要放在web目录下