问题:The requested URL /xxxx.html was not found on this server 原因:apache的重写未开启,开启重写后,问题解决, 方法如下: apache 打开 httpd.conf 文件 找到AllowOverride None 改为 AllowOverride All…
在写项目的时候偶尔会加载一些不需要传递参数的静态视图,例如 class Index extends Common { public function index() { return $this->fetch(); } public function top() { return $this->fetch(); } public function menu() { return $this->fetch('',['menus'=>$this->_user['menus']])…