I am in the process of upgrading CI from 1.x to 3.x
From my application/controller/home.php
which has a class:
class Home extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->library('app_controller');
}
...
And inside application/libraries/App_Controller.php
class App_Controller extends CI_Controller {
function __construct() {
parent::__construct();
$config_app = $this->config->load('Application');
...
From application/config/Application.php
I am defining variables:
$config['env'] = 'dev';
$config['https'] = '//'.$_SERVER['HTTP_HOST'].'/';
$config['js'] = '/ui/js/';
But this returns an error
An uncaught Exception was encountered
Type: Error
Message: Class 'CI_App_controller' not found
Filename: C:xampphtdocsmyprojectsystemcoreCommon.php
Any suggestions how to overcome this error and why App_Controller
is not found.
Thank you!