We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
原来是放在application目录里面,我视图文件放在public目录中,如何把原来配置的目录换到public里面?
The text was updated successfully, but these errors were encountered:
我是重写了Controller_Abstract的display方法: $view = new \Yaf\View\Simple(APPLICATION_PATH . "/logs/views"); return $view->display("{$tpl}.phtml", $parameters);
Sorry, something went wrong.
可以试试 https://www.php.net/manual/zh/yaf-view-interface.setscriptpath.php 我本地 3.3.2 是有效 在Bootstrap.php 中增加
public function _initView(Yaf\Dispatcher $dispatcher){ $dispatcher->initView('')->setScriptPath('/temp/dir'); }
No branches or pull requests
原来是放在application目录里面,我视图文件放在public目录中,如何把原来配置的目录换到public里面?
The text was updated successfully, but these errors were encountered: