Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.3

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

[eluser]ralf57[/eluser]
@WanWizard

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

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

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

[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

[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.

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

[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.

[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

[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.




Theme © iAndrew 2016 - Forum software by © MyBB