Modular Extensions - HMVC version 5.4 - 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.4 (/showthread.php?tid=38057) |
Modular Extensions - HMVC version 5.4 - El Forum - 12-05-2012 [eluser]@MaxG[/eluser] Hey, Is it possible to use a /language folder in a Module? Greeets Modular Extensions - HMVC version 5.4 - El Forum - 12-05-2012 [eluser]XMadMax[/eluser] Hi MaxG, Yes, you can have a .../modules/mymodule/language/english/example_lang.php To load: $this->load->language('mymodule/example'); ===================================================================================== CI 2.1.2 + HMVC 5.4 + Common shared folder for multiple applications http://ellislab.com/forums/viewthread/223678/ Modular Extensions - HMVC version 5.4 - El Forum - 12-05-2012 [eluser]@MaxG[/eluser] Okay, It works, thank you. Modular Extensions - HMVC version 5.4 - El Forum - 12-12-2012 [eluser]katanama[/eluser] Hi guys... I'm a PHP noob and this questions might be trivial... 1, When I do var_dump($this) in two installation of CI, one is vanilla CI, the other is CI+HMVC, I get different result. a. Can someone explain if this is on purpose or it's just inevitable... b. Does this effect in any way the way someone code on CI. c. Is it something that can be rectified by some code clean up? If yes, I'd like to try when I have the time. 2. In Base.php, the last line says Code: new CI Code: $CI = new CI; as I said, I'm a very novice programmer. Modular Extensions - HMVC version 5.4 - El Forum - 12-12-2012 [eluser]dafreak[/eluser] So I'm still new to CI and HMVC but I have been messing around a bit and was looking at hooks and noticed that there is no auto loading of hooks from the module's folder so here's what I came up with MX/Hooks.php Code: class MX_Hooks extends CI_Hooks and in the Core folder a file name MY_Hooks.php Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); its a quick and dirty solution so any (constructive) comments are welcomed Modular Extensions - HMVC version 5.4 - El Forum - 12-24-2012 [eluser]ahmedmahmoudit[/eluser] [quote author="wiredesignz" date="1296284337"]Modular Extensions - HMVC version 5.4 is available from Bitbucket. (see my signature below) CodeIgniter version 1.7 is no longer supported.[/quote] Thank you wiredesignz for Great Extension but i have question i'm already using the extension and now i want to integrate phpUnit and i don't know if this possible with HMVC extension? Modular Extensions - HMVC version 5.4 - El Forum - 01-07-2013 [eluser]MainmanFR[/eluser] Hello, I've got a little problem with HMVC. I call directly the URL of my module, and I've got a memory limit error in : Loader.php line 55 in the foreach loop. The error shows after 1 ou 2 minutes ... Never had such an error. Any ideas please ? Thanks, Renaud Modular Extensions - HMVC version 5.4 - El Forum - 01-08-2013 [eluser]ahmedmahmoudit[/eluser] be sure that you extend MX not CI Modular Extensions - HMVC version 5.4 - El Forum - 01-09-2013 [eluser]XMadMax[/eluser] [quote author="katanama" date="1355316165"]Hi guys... I'm a PHP noob and this questions might be trivial... 1, When I do var_dump($this) in two installation of CI, one is vanilla CI, the other is CI+HMVC, I get different result. a. Can someone explain if this is on purpose or it's just inevitable... b. Does this effect in any way the way someone code on CI. c. Is it something that can be rectified by some code clean up? If yes, I'd like to try when I have the time. 2. In Base.php, the last line says Code: new CI Code: $CI = new CI; as I said, I'm a very novice programmer. [/quote] katanama, HMVC isn't 'over' CI, then must to extend with CI::$APP, this is the major difference. Modular Extensions - HMVC version 5.4 - El Forum - 01-09-2013 [eluser]XMadMax[/eluser] [quote author="MainmanFR" date="1357579254"]Hello, I've got a little problem with HMVC. I call directly the URL of my module, and I've got a memory limit error in : Loader.php line 55 in the foreach loop. The error shows after 1 ou 2 minutes ... Never had such an error. Any ideas please ? Thanks, Renaud[/quote] Seem the line like .... /* references to ci loader variables */. Would be that you have something in your code that makes recursive assignment of variables. This loop copy all vars from CI to Loader (this), then if there are variables that points one to other, then the loop never ends. |