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

关于twig显示多级目录的问题 #3

Open
niefajun opened this issue Jan 30, 2018 · 0 comments
Open

关于twig显示多级目录的问题 #3

niefajun opened this issue Jan 30, 2018 · 0 comments

Comments

@niefajun
Copy link

你好,我按照你例子配置,在yaf中接入twig。但是遇到一个问题,不知道你遇到过没有。 具体问题如下: 假设indexController 中的indexAction,默认显示的视图为views/index/index.html, 但是如果在indexAction中使用$this->display('default/index/index.html'),增加一层目录,用于准备多套视图模板,这个时候就是提示错误信息:Twig_Error_Loader: Unable to find template "index/index.html" (looked into: /Users/niefajun/www/xhy/xinghe_front/m/application/views). 是不是只能支持一级目录,不支持两级目录?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant