Laravel不同的视图文件夹
我已经下载了一个项目,并注意到该项目使用来自不同目录的视图而不是通常的目录,
\resources\views
而是创建一个新的文件夹名称主题并在其中插入所有视图。
\themes\app\views
,我在控制器中也注意到他们使用getapptheme()
任何人都知道我如何在 \ resources \ resources \ resources \ yestapptheme ()查看我所有视图文件的文件夹。以及如何使用getAppTheme()返回视图,就像图片中一样。
I have downloaded a project and I noticed that the project use views from different directory not the usual directory which are
\resources\views
but instead it create a new folder name themes and insert all the views in there.
\themes\app\views
and also I noticed in the controller they return view by using getAppTheme()
Return View using getAppTheme()
Anyone know how I can create a new folder outside the \resources\views folder for all my views file. And how I can return view using getAppTheme() just like in the picture.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在config/views.php上的laravel上有一个config供查看路径,
您可以通过更改此处配置
there a config for view path at laravel located at config/views.php
you can configure there by change this
谢谢,但是我要寻找的答案在这里
https://github.com/shipu/shipu/themevel
无论如何,再次感谢
Thanks but the answer I was looking for is in here
https://github.com/Shipu/themevel
Anyway, thanks again