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.



This method doenst need any parameter.


Here is the full example usage for __construct method.

class Blog extends SENE_Controller {
  public function __construct(){
  public function index(){
    echo 'Hi, I run properly!';