__construct() protected method

Import the Config and Session instances
protected __construct ( )
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->import('Database');
     $this->import('Input');
     $this->database = $this->Database;
     $this->input = $this->Input;
 }
Ejemplo n.º 2
0
 /**
  * Make the constuctor public
  */
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 3
0
 /**
  * Import the database object
  */
 protected function __construct()
 {
     parent::__construct();
     $this->import('Database');
 }