如何更改 Zend Framework 配置中的视图 scriptPath?
因为绝对没有关于 Zend Framework 的一般配置的文档 - 这真的让我很生气! - 我必须在这里问这个=(
我想更改我的应用程序的目录结构。我想要视图、助手和布局等位于其他地方(不是默认值)。我知道我可以在 View 对象上更改它,当我有视图对象,但这只是愚蠢的。在我的配置(application.ini
)中,我有:
resources.view[] =
它使视图对象始终可用(完美)。它在 application.ini
配置文件中?
谢谢!
PS。并配置它,但这不是我想要的。
Since there is absolutely NO DOCUMENTATION on the general config of the Zend Framework - which pisses me off sincerely! - I have to ask this here =(
I want to change the directory structure of my application. I want views and helpers and layouts etc located elsewhere (not the defaults). I know I can change that on the View object, when I have the view object, but that's just silly. This is a config option. In my config (application.ini
) I have:
resources.view[] =
which makes a View object available at all times (perfect). How do I config it in the application.ini
config file?
Thanks!
PS. I know I could extend the Controller and create a View object there and config it, but that's not what I want. Config should be in the config file. Period.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
后
执行此操作
尝试在视图对象上使用以下内容进行检查
After
Do this
Try and check it by using the following on your view object