Modular Extensions - Version 4.3 |
[eluser]wiredesignz[/eluser]
Yes Sam, version 4.2 is based on the new version 5.0
[eluser]Sam Dark[/eluser]
Some code from Russian community, © AndrewWB. Allows nested view folders for modules. modules_helper.php, modules_find(): Code: /** Find a file
[eluser]wiredesignz[/eluser]
Thats weird Sam, modules_find already scans for views in view/sub-directories that match the controller name. That code does the same job as the code already in modules_find but the extra segment $spath will slow the whole search process.
[eluser]sophistry[/eluser]
wiredesignz... i'm trying to make a moblogging module using ME as a test. i just tried loading a plugin (file is in applications/modules/moblog/plugins/pretty_print_pi.php). the error is can't load file and the filename has an extra _pi appended to it, so for some reason load_module() in modules_helper gets a request for pretty_print_pi_pi.php and of course, it can find that file. i solved it by just renaming the file with two _pi suffixes, but that is just wrong. do you know why two suffixes are being added to the plugin filename? is there a fix? thanks!
[eluser]wiredesignz[/eluser]
@Sophistry, you don't need to use the _pi extension in your code. ME and CI both add the extension for you. Code: $this->load->plugin('pretty_print');
[eluser]sophistry[/eluser]
yes, sorry for not posting my code snippet! that is what i did, (meaning i have exactly the code you wrote above) but somewhere another _pi is being added. not sure where that is happening except that it is already part of the $file argument sent to modules_load_file() function in the modules_helper.php. (meaning by the time it is getting sent to the modules_load_file() function it already has two _pi suffixes added. thanks!
[eluser]wiredesignz[/eluser]
@sophistry, Yes you are totally correct, ME plugin loader has a bug (adds _pi then CI adds _pi) Try changing these lines in ME Controller Code: //Controller.php - line 369
[eluser]sophistry[/eluser]
great! that worked. thanks for the fix. now, back to "plugging" along.
[eluser]wiredesignz[/eluser]
@sophistry, Thank you, I will add this fix to next upload. ![]() |
Welcome Guest, Not a member yet? Register Sign In |