![]() |
How to load view from modul A in controllers modules B in HMVC (Modular Extention) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to load view from modul A in controllers modules B in HMVC (Modular Extention) (/showthread.php?tid=27089) |
How to load view from modul A in controllers modules B in HMVC (Modular Extention) - El Forum - 02-01-2010 [eluser]didit[/eluser] hi need a help again how to load view from modules A in controller modules B?? for example modules A : templates, modules B : Testing i used $this->load->view('templates/themes', $this->data); but it not work ! ![]() here my code : Code: class Testing extends MY_Controller { error msg : Code: An Error Was Encountered thanks a lot How to load view from modul A in controllers modules B in HMVC (Modular Extention) - El Forum - 02-01-2010 [eluser]flaky[/eluser] from the wiki Quote:Use application/libraries/MX_Controller.php to contain Controller class extensions instead of using MY_Controller. How to load view from modul A in controllers modules B in HMVC (Modular Extention) - El Forum - 02-01-2010 [eluser]didit[/eluser] hi flaky , actually i have rename MY_Controller to MX_Controller, but didn't change the class name, so it stay as it was. although i have changed the classname from MY to MX, but still got the same error ! FYI, when i remove code $this->load->view('templates/themes', $this->data); system works fine, so? did i miss something?? thanks a lot How to load view from modul A in controllers modules B in HMVC (Modular Extention) - El Forum - 02-01-2010 [eluser]didit[/eluser] SOLVED How to load view from modul A in controllers modules B in HMVC (Modular Extention) - El Forum - 02-17-2010 [eluser]Joey Beltran[/eluser] Care to share how you solved it. Thanks. |