Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yafAutoRender 在 php7下的问题 #209

Open
lilj opened this issue Nov 13, 2015 · 1 comment
Open

yafAutoRender 在 php7下的问题 #209

lilj opened this issue Nov 13, 2015 · 1 comment
Labels

Comments

@lilj
Copy link

lilj commented Nov 13, 2015

这个应该不是BUG, 可能是php7下类型严谨了

我之前继承了 Yaf_Controller_Abstract, 然后里面加了

protected $yafAutoRender = 1;

结果到7下死活不出视图,一片空空, 后来把 1 改成 true 就好了。

@lilj
Copy link
Author

lilj commented Nov 13, 2015

另外
在Cli下面, 用

Yaf_Dispatcher::getInstance()->autoRender(false);
Yaf_Dispatcher::getInstance()->disableView();

未能阻止视图,提示找不到视图文件出错。

protected $yafAutoRender = false;

也无效, 用

protected $yafAutoRender = 0;

可以, 不报错

奇怪的问题。

@laruence laruence added the bug label Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants