![]() |
Modular Extensions - HMVC version 5.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 - HMVC version 5.3 (/showthread.php?tid=33523) |
Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]icomefromthenet[/eluser] I was having a problem with blank screen after a install of the new HMVC code (1.7.2), In my case I tracked it down to the /third_party/MX/Config.php file, the config file under System/libraries/config.php was already included (so new file not loaded), so after a rename of the file (not class inside) my problem went away. Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]wiredesignz[/eluser] [quote author="icomefromthenet" date="1285331018"]I was having a problem with blank screen after a install of the new HMVC code (1.7.2), In my case I tracked it down to the /third_party/MX/Config.php file, the config file under System/libraries/config.php was already included (so new file not loaded), so after a rename of the file (not class inside) my problem went away.[/quote] And you have broken the installation. Good luck with that. File names are not the issue. Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]wiredesignz[/eluser] Modular Extensions - HMVC bitbucket wiki is updated. Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]coffey[/eluser] As you say @InsiteFX Quote: Thanks. It suited me to create a model extending CI_Model (autoloaded via config/autoload). Code: <?php if (! defined('BASEPATH')) exit('No direct script access'); Really not much of a change here anyway as most of my previous 1.7 module models were in themselves descended from an extended 'crud' base model anyway. Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]coffey[/eluser] BTW big thanks to @wiredesignz for all his fantastic work. Now where is that donate button..... Modular Extensions - HMVC version 5.3 - El Forum - 09-24-2010 [eluser]wiredesignz[/eluser] Thanks coffey, much appreciated. Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010 [eluser]Phil Sturgeon[/eluser] It looks to me like callback functions don't work when I extend from MX_Controller. My login callback was the one that made me spot this: Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); _check_login() is never called at all. I threw a exit('hai!') in the first line of the method and got nothing, I'd have a go debugging the error but I've already spent almost an hour of work time getting this far. >.< Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010 [eluser]WanWizard[/eluser] Ran into this issue as well. The form validation library expects callbacks to be methods of $this->CI (set in the library constructor, when you load the form validation library), which probably points to something else than your module controller... Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010 [eluser]wiredesignz[/eluser] I have explained this so many times. Set the Form_validation $CI instance to the object you require to respond to callbacks. Code: // Call validation and set rules Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010 [eluser]Phil Sturgeon[/eluser] This doesn't seem like an amazingly clean solution... Is there no way to build support for this into ME? |