codeigniter-cli icon indicating copy to clipboard operation
codeigniter-cli copied to clipboard

CI_Loader in HMVC

Open Jorgibiris opened this issue 9 years ago • 3 comments

Hi, I have a error in HMVC app. Neccesary my folder estructure is:

  • app (all CI)
    • application
    • system
  • www (public with index.php)

The error is: Fatal error: Class 'CI_Lang' not found in C:/wamp/www/myapp/app/application/third_party/MX/Lang on line 37

Exist MX_Lang in this folder, but not Lang...

Thank for your work!... and excuse my english... :)

Jorgibiris avatar Jun 03 '16 12:06 Jorgibiris

Sorry, I don't use HMVC.

kenjis avatar Jun 04 '16 08:06 kenjis

Ah, ok. Thanks, I'll try to fix it ant comment.

Jorgibiris avatar Jun 06 '16 07:06 Jorgibiris

Please add define('SYSDIR', basename(BASEPATH)); to ci_instance.php after define('VIEWPATH', $application_folder . '/views/');

and remove load_class('Loader', 'core'); it is unnecessary and will be loaded in require(BASEPATH . 'core/Controller.php');

after that MX will be working and without MX too

Userlocal2 avatar Aug 21 '17 20:08 Userlocal2