【发布时间】:2013-08-08 07:53:20
【问题描述】:
您好这里需要帮助(特别是那些 Fuelphp 开发人员),
我在使用模块实现的fuelphp 上进行了这些设置。以下是我目前的设置:
app
-modules
--design
---classes
---views
----admin
-----index.php
在我的控制器 Controller_Admin 上,我正在输入代码:
$this->template->notification = \View::forge('common/notification.php');
导致错误:
The requested view could not be found: common/notification.php
如何从模块上的控制器加载视图?有什么想法吗。谢谢。
【问题讨论】:
-
你是否在配置文件中启用了你的模块?
-
是的,always_load 设置的模块路径和模块