nginx yaf需要注意的问题
显示视图的方法
$this->getView()->assign(array('pack'=>$return['pack'],'appid'=>$return['appid'])); $this->display('index');
nginx配置文件
index index.php index.html index.htm; if (!-e $request_filename) { rewrite ^/(.*) /index.php?$1 last; }
官方文档是错的 这里修复下
ps:还有控制器和文件夹名字不要一样 不然访问优先访问文件夹 然后再访问控制器的