CodeIgniter Forums
Modular Extensions - (HMVC) - Version 3.1.9 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Modular Extensions - (HMVC) - Version 3.1.9 (/showthread.php?tid=6385)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]Adods[/eluser]
i have an idea. what if you make a configuration file for the basepath, so user can change the modules' directory name with anything they want. Smile


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
Current Version is 3.0.3
Fixed issue with modules->model not loading CI_Model class.
Added $this->base = 'modules/' to Loader class, in case people need to over-ride the value for their application.
Added $this->load->modules->config()


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
Current Version is 3.0.4
Removed $this->base = 'modules/'
Added MODBASE constant and set to APPPATH.'modules/'


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]Edemilson Lima[/eluser]
There is one thing I didn't understood yet... Inside my modules, should I use "$this->load->view('view_file',NULL,TRUE)" or do I need to use "$this->load->module->view('view_file',NULL,TRUE)"? This is a bit confusing to me. When use one or another?


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
Views in the main Views directory = $this->load->view('view')

Views in your modules/views directory = $this->load->module->view('view')


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
Current Version is 3.0.5
Added loading form alternate module views directory. Thansk Edemilson

Code:
$this->load->module->view('module_name/view');



Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]Edemilson Lima[/eluser]
Nice! Will the same apply to models too? And also libraries, helpers and plugins (when it have support for them)?

I think this is one of the most useful add-ons to CodeIgniter. I hope I can help even more! Smile


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
It should work for models and libraries already, they use the same code as the views to set the module path.


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]Edemilson Lima[/eluser]
One piece of code in the end of the page in the Wiki is out of the [code ] and [/ code] formatting:

class Default_controller extends Controller

I think it is incomplete also, because of the limit for the text size.


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 02-27-2008

[eluser]wiredesignz[/eluser]
Current Version is 3.0.6
Removed modules::debug
Re-organised _load_config, no functional changes

Thanks Edemilson Wink