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. Usually the parent constructor are executed after class constructor.

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

Basic Usage

Here is the basic usage for __construct method from SENE_Controller class.

parent::__construct();

Parameters

This method doenst need any parameter.

Example

Here is the full example usage for __construct method.

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