kenjis / codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer
MIT License
377 stars 118 forks source link

Extends CI_Controller #42

Closed ArmandArthur closed 3 years ago

ArmandArthur commented 5 years ago

Hello,

All Works for me when my controllers extends of CI_Controller.

But when i do :

`class MY_Commun extends CI_Controller {

AND

class commentaire extends MY_Commun {`

I have the error following....

Fatal error: Class 'MY_Commun' not found in C:\wamp\www\ci_articles\application\controllers\Commentaire.php

Why my class is not loaded?

When i do : Controller_1 extends CI_Controller and Controller_2 extends CI_Controller , inside controllers folder, it's works !

kenjis commented 5 years ago

It is the specification of CodeIgniter 3. CodeIgniter 3 has no real autoloader. So you have to load it manually, or have to make autoloader by yourself.