Closed ArmandArthur closed 3 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 !
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.
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 !