• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading an application level view from within a module controller


I have application controllers and views and module controllers and views.

I want to place a general error template (view) at the application layer but load this whenever an error occurs in any module controller.

In the module controller I do this:


but I get the error message:

Unable to load the requested file application/modules/mymodulename/views/error.php because, of course, it is looking for the view to match the (module) controller.

The template I want to use exists here:


How can I load it from within my module controller?



$CI =& get_instance();


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.