![]() |
Modular Extensions - Version 4.3 - 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 - Version 4.3 (/showthread.php?tid=6550) |
Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]Avatar[/eluser] Quote:@wiredesignz ok, I understand now. The functions it the helper are essential for it to work, but the to_string function is not. and is only usable for nested sibling modules and that is not really needed anyway since it just complicates everything in code and in memory usage, etc... although, nesting at least one level down is a good option to have when you want to keep module intact. Thank you. I wish someone had slapped that across my forehead earlier. ![]() Modular Extensions - Version 4.3 - 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. Unless something changed in the way to name module classes and directory names. Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]wiredesignz[/eluser] Did that fix your error? In Windows it should not matter, and in Linux only the class names are Capitalised the actual objects are lowercase versions. Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]marios[/eluser] it is a linux system. here is how i have my structure: Code: modules head class name is Head. and i get this error: Unable to locate the requested module file: Head/views/head_view.php if i rename the folder to Head i get this error: Unable to locate the requested module file: head/controllers/head.php so it seems the controller uses the lower case and the view the upper case. if i modify the Loader class to use strtolower() it works fine. Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]wiredesignz[/eluser] The loader tries finding lowercase and then uppercase names for all files just in case. The module and its controller generally have the same name, modules/header/controllers/header.php although it isn't compulsory. But yes, the head.php would create a `Head` class, I will add this fix to 4..0.10 Thanks marios ![]() Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]marios[/eluser] so was my naming for the folders and modules and the class name the way HMVC expects it? I noticed the previous version had the strtolower() so i wasn't sure if it was removed for a specific reason. Modular Extensions - Version 4.3 - El Forum - 03-05-2008 [eluser]wiredesignz[/eluser] It was removed because I felt it wasn't needed, I forgot Linux has filename constraints, I will fix that. Thanks. Modular Extensions - Version 4.3 - El Forum - 03-06-2008 [eluser]wiredesignz[/eluser] Version 4.0.10 is available on the wiki Altered file loading: Modules now know which is their home directory. Modular Extensions - Version 4.3 - El Forum - 03-06-2008 [eluser]wiredesignz[/eluser] Version 4.0.11 is available on the wiki Improved module file scanning Modular Extensions - Version 4.3 - El Forum - 03-06-2008 [eluser]Avatar[/eluser] in wiki still points to 4010. please update. |