setTitle method

setTitle the current page, this method used only with getTitle method.

Basic Usage

The basic usage for setTitle method is:

setTitle(string $page_title): $this


setTitle method has 1 required parameter.


This parameter value allowed to set the page title name.

Example Usage

Here is the full example of setTitle method.

class Blog extends SENE_Controller {
  public function __construct(){
  public function index(){
    $this->setTitle('Blog home');
  public function detail($id){
    $this->setTitle('Blog Detail...');