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 - 03-05-2008

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


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-05-2008

[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/


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-05-2008

[eluser]marios[/eluser]
Ok. I continue this on the version 4 thread.


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-05-2008

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


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-05-2008

[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


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-06-2008

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


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-06-2008

[eluser]Avatar[/eluser]
I don't quite understand what you mean, sorry. Can you be more specific?


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-06-2008

[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');
At least I think that's his problem Tongue

EDIT:
Plus I have a fix for this in Version 4.0.10


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-06-2008

[eluser]Avatar[/eluser]
oh, ok. didn't know that. 4.0.9 doesn't do this?


Modular Extensions - (HMVC) - Version 3.1.9 - El Forum - 03-06-2008

[eluser]Le Bang[/eluser]
sorry. I speak english very bad.

visit:

http://xongngay.net/question.jpg