CodeIgniter Forums
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]wiredesignz[/eluser]
Well there is no absolute reference to the current module controller... so not really.


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]ralf57[/eluser]
@WanWizard

How is your "Modular CI" different from wiredesignz's implementation?


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]wiredesignz[/eluser]
@ralf57, He may feel better to answer in his Modular CI thread. Thanks.


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]ralf57[/eluser]
You're right wire,
sorry for "polluting" the thread


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]Johan André[/eluser]
In the Modular Separation maintained by Phil he created an enhancement (i thought do anyway) that would load extended classes from the core-folder.

Like Base_Controller extending MX_Controller (located in core-folder).

Is this something you plan to add? It keeps my library-folder cleaner Smile


Modular Extensions - HMVC version 5.3 - El Forum - 09-27-2010

[eluser]wiredesignz[/eluser]
Hey Johan, yes entirley possible to add autoloading from application/core.

Bitbucket is now updated with spl_autoload for application/core base classes. Thanks Johan.


Modular Extensions - HMVC version 5.3 - El Forum - 09-28-2010

[eluser]Johan André[/eluser]
Great!
Thanks for some really good work!


Modular Extensions - HMVC version 5.3 - El Forum - 09-29-2010

[eluser]Phil Sturgeon[/eluser]
Thanks for bringing that up Johan, it's good to have that feature back.

I'm getting an error now that I'm pushing v1.1 of my CMS to live (which contains Modular Extensions minus the MX_Controller stuff). This is all working perfectly fine on local, but when it gets to my CentOS live server I get the error:

Quote:Fatal error: Class 'MX_Loader' not found in /usr/local/www/application/third_party/MX/Ci.php on line 47

As you've pointed out before this code is rather complex so instead of faffing, debugging and false fixing like before I figure I'd let you answer.


Modular Extensions - HMVC version 5.3 - El Forum - 09-29-2010

[eluser]InsiteFX[/eluser]
Hi Phil,

I may be wrong on this, like you said the code is complex.

But i think it's missing this at the top!

Code:
require_once 'loader.php';

InsiteFX


Modular Extensions - HMVC version 5.3 - El Forum - 09-29-2010

[eluser]wiredesignz[/eluser]
@phil, do you have MY_Loader.php in application/core which includes MX / Loader.php like so.
Code:
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

require APPPATH."third_party/MX/Loader.php";

class MY_Loader extends MX_Loader {}

@InsiteFX, Modular Extensions relies on CI to load the MX_loader class via MY_Loader.php allowing for future user extensions of the class.