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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -