Fuelphp: Can't load module's view from module's controller -
hi there need assistance here(specially fuelphp developers),
i'm having these set-up on fuelphp using module implementation. below current set-up:
app -modules --design ---classes ---views ----admin -----index.php
on controller controller_admin i'm putting code:
$this->template->notification = \view::forge('common/notification.php');
it cause error:
the requested view not found: common/notification.php
how can load view controller on module? thoughts. thank you.
i figured out. need use scope resolution (::) on this. :-) works, replaced code this:
$this->template->notification = \view::forge('design::common/notification');
removing extension , adding module name scope resolution solves problem. :)
Comments
Post a Comment