Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - (HMVC) - Version 3.1.9
#41

[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
#42

[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()
#43

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

[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?
#45

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

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

[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');
#47

[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
#48

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

[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.
#50

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

Thanks Edemilson Wink




Theme © iAndrew 2016 - Forum software by © MyBB