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
执行display的时候,模板文件路径会被在viewpath 和 模版名之间插入当前action的目录名。 怎么设置才能不这样? 比如:setViewpath( '/a/b/c' ); 当前action 在 my_actions目录, display( 'home.html', $data ); 会去找 /a/b/c/my_actions/home.html 目录。我试了很久没有找到办法
The text was updated successfully, but these errors were encountered:
貌似目前不能这样使用。
$this->getView()->display(string $view_path, array $tpl_vars = NULL) 中$view_path指的是模板基目录到该模板的的路径及模板名称
Sorry, something went wrong.
No branches or pull requests
执行display的时候,模板文件路径会被在viewpath 和 模版名之间插入当前action的目录名。
怎么设置才能不这样?
比如:setViewpath( '/a/b/c' );
当前action 在 my_actions目录,
display( 'home.html', $data ); 会去找 /a/b/c/my_actions/home.html 目录。我试了很久没有找到办法
The text was updated successfully, but these errors were encountered: