![]() |
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-29-2008 [eluser]dfau[/eluser] Hi wiredesignz, Is there any reason for this change between 4.0.23 and 4.0.24 in modular_extensions.php? Code: @@ -235,25 +239,23 @@ class Loader extends CI_Loader This means that libraries must be loaded as "Validation" rather than "validation". Thanks heaps, df Modular Extensions - Version 4.3 - El Forum - 03-29-2008 [eluser]wiredesignz[/eluser] Version 4.0.26 is available on the wiki Fixed ucfirst issue when loading core libraries. Thanks dfau ![]() Modular Extensions - Version 4.3 - El Forum - 03-30-2008 [eluser]dfau[/eluser] Hi wiredesignz, Is loading databases on the run supported? The configuration vanishes when I try: Code: $testdb = $this->load->database($cfg, TRUE); Thanks, df Modular Extensions - Version 4.3 - El Forum - 03-30-2008 [eluser]wiredesignz[/eluser] The modules loader has no influence over the native CI database loader, it should work as normal. However, there may be an issue where the modules don't see a change in the CI database settings, I would need to investigate and test this further. Could you explain what `vanishes` means in terms of CI, rather than a magic show ![]() Modular Extensions - Version 4.3 - El Forum - 03-30-2008 [eluser]dfau[/eluser] Hi wiredesignz, Sorry for lack of detail - given this: Code: $testdb = $this->load->database($cfg, TRUE); Quote:You have not selected a database type to connect to.from DB.php line 76. If I dump the parameters at this point my configuration appears to have been overridden - all parameters are reset. Thanks, df Modular Extensions - Version 4.3 - El Forum - 03-31-2008 [eluser]wiredesignz[/eluser] It seems $cfg must either be a DSN string or the name of a database.php config array. ie: not the array itself. This is a CI thing, unrelated to modules. Modular Extensions - Version 4.3 - El Forum - 03-31-2008 [eluser]dfau[/eluser] Hi wiredesignz, So sorry - I was working from the 1.6.1 documentation which says that you can pass a config array to the database constructor, but according to this bug report it's broken. Note to self: triple-check before annoying you! Thanks again, df Modular Extensions - Version 4.3 - El Forum - 04-01-2008 [eluser]unsource[/eluser] What is the source of default_model ? controllers/default_controller.php Code: function Default_controller() If I delete Code: $this->load->model('default_model'); Quote:An Error Was Encountered Modular Extensions - Version 4.3 - El Forum - 04-01-2008 [eluser]wiredesignz[/eluser] The example code from the wiki shouldn't be used literally, it is only to show people how to run modules from a controller. In any case the error occurs because the search module is not found, not because you deleted the default_model. Modular Extensions - Version 4.3 - El Forum - 04-02-2008 [eluser]James Pax[/eluser] Wait I'm a bit confused... wouldn't you use AJAX for multiple controller calls? :ohh: Btw this thing is really good lol... CI must have this feature integrated with CodeIgniter2 |