Constructor method

The Constructor method will loaded all parent class that required for a controller.

This is method is very important for Seme Framework Controller.

If the constructor method is missed, you maybe get unexpected result.

Ussually the parent constructor are executed after class constructor

Basic Usage

The basic usage for this method is:

parent::__construct();
            

Here is the full example:

<?php
  class Blog extends SENE_Controller {
    public function __construct(){
    parent::__construct();
  }
  public function index(){
    echo 'Hi, I run properly!';
  }
}