- Seme Framework
- version 4.0.3
- Requirements
- Download & Install
- Configuration
- Tutorials
- URI Routing
- Constants
- Global Variables
- Model
- View
- Controller
- cdn_url
- config
- constructor
- getAdditional
- getAdditionalBefore
- getAdditionalAfter
- getAuthor
- getCanonical
- getContentLanguage
- getDescription
- getIcon
- getJsContent
- getJsFooter
- getJsReady
- getKey
- getKeyword
- getLang
- getRobots
- getShortcutIcon
- getThemeElement
- getTitle
- input
- lib
- load
- loadCss
- loadLayout
- putThemeContent
- putJsContent
- putJsFooter
- putJsReady
- render
- resetThemeContent
- session
- setAuthor
- setCanonical
- setContentLanguage
- setDescription
- setIcon
- setKey
- setKeyword
- setLang
- setShortcutIcon
- setTheme
- setTitle
- Library
- CLI (command line interface)
- Core
- Issue
- Deployment
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.
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!';
}
}