nginx yaf需要注意的问题
nginx yaf需要注意的问题
显示视图的方法
<pre>
$this->getView()->assign(array('pack'=>$return['pack'],'appid'=>$return['appid']));
$this->display('index');
</pre>
nginx配置文件
<pre>
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?$1 last;
}
</pre>
官方文档是错的 这里修复下
ps:还有控制器和文件夹名字不要一样 不然访问优先访问文件夹 然后再访问控制器的
如果遇到什么不懂的地方直接关注公众号留言(本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利。)
作者:newmiracle
出处:https://www.cnblogs.com/newmiracle/