menu

Codeigniter Class Constructor


Codeigniter class constructor : Constructors are special functions which are called when a new object is created.


Syntax : Codeigniter class constructor

Note parent::__construct(); is required to override the parent class’s constructor.