Modular Extensions - (HMVC) - Version 3.1.9 |
[eluser]marios[/eluser]
I believe there is an error with version 4.09 in class Loader $this->_path = get_class($module); should be $this->_path = strtolower(get_class($module)); After upgrading I was getting the error: could not load view and the path uses the module name capitalized.
[eluser]Avatar[/eluser]
I don't have that problem and I name my module in all lowercase. Can you please note this in the 4 thread? link is below: http://ellislab.com/forums/viewthread/73177/
[eluser]Le Bang[/eluser]
[quote author="yingyes" date="1204798733"]firstly your module.php can be inside app/modules/module/controller/ or app/modules/module just make sure that your module is name same as the directory it's in[/quote] not should that. because. each folder module have only a module file.
[eluser]Avatar[/eluser]
ME searchs for modules in the modules/module directory so module.php can be located inside modules/module/module.php or modules/module/controllers/module.php
[eluser]Le Bang[/eluser]
but problem modules/module/controllers/not_name_module.php ==> modules:run() OK in module not_name_module.php not load view in modules/module/views/ i want have modules (s) in modules/module/. in each a module load view in modules/module/views. v.409 require module file name = module folder name.
[eluser]Avatar[/eluser]
I don't quite understand what you mean, sorry. Can you be more specific?
[eluser]wiredesignz[/eluser]
I understand his problem, he can run a module with a different name from its directory, but it cant find its views. The reason is the that the module's own class name is used to find its views, if you do this your way you must specify where the views are located. Code: $this->load->view('module_directory/view'); EDIT: Plus I have a fix for this in Version 4.0.10
|
Welcome Guest, Not a member yet? Register Sign In |