11-29-2018, 07:44 AM
Hi guys.
I am new to codeigniter.
I want to make my own App_Controller and extend all other controllers from this.
I want to put it in controllers folder.
But is not working.
class Welcome extends App_Controller {
is not finding it even if they are in the same contorller?
There is no such thing as loading a file by its class name?
I looked at https://www.codeigniter.com/user_guide/l...oader.html
Looks like my only hope is to put my App_Controller in core and init that in my config or smth?
I really think there should be an autoloader to look files by class name that is a big surprise for me not to find.
Or is there a way?
Cheers
I am new to codeigniter.
I want to make my own App_Controller and extend all other controllers from this.
I want to put it in controllers folder.
But is not working.
class Welcome extends App_Controller {
is not finding it even if they are in the same contorller?
There is no such thing as loading a file by its class name?
I looked at https://www.codeigniter.com/user_guide/l...oader.html
Looks like my only hope is to put my App_Controller in core and init that in my config or smth?
I really think there should be an autoloader to look files by class name that is a big surprise for me not to find.
Or is there a way?
Cheers