How do I load a view from outside the default views folder in this application? |
I am working on a CMS with [b]CodeIgniter 3.1.8[/b] and Bootstrap 4. I have decided to add themes to it.
The [i]themes[/i] directory is outside [i]application[/i] as can be see in the image below: [color=var(--blue-700)] ![]() Inside [i]themes[/i] I have the theme directory (of course) which contains the "master view", layout.php: [/color][color=var(--blue-700)] ![]() In application/core [/color]I have added a Loader.php file with the following contents: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); In my Posts controller's index() method, I load the view passing it the data: Code: public function index() { I get this error message: Code: Call to undefined method CI_Loader::ext_view() [b]NOTE:[/b] the application is [b]not HMVC[/b], only MVC. What am I doing wrong? |
Messages In This Thread |
How do I load a view from outside the default views folder in this application? - by Ajax30 - 10-28-2020, 09:23 AM
RE: How do I load a view from outside the default views folder in this application? - by InsiteFX - 10-29-2020, 12:47 PM
RE: How do I load a view from outside the default views folder in this application? - by Ajax30 - 10-30-2020, 04:17 AM
RE: How do I load a view from outside the default views folder in this application? - by InsiteFX - 10-30-2020, 11:22 AM
RE: How do I load a view from outside the default views folder in this application? - by Ajax30 - 10-30-2020, 12:13 PM
|