setAuthor method

setAuthor the current page, this method used only with getAuthor method.

Basic Usage

The basic usage for setAuthor method is:

setAuthor(string $author_name): $this

Parameters

setAuthor method has 1 required parameter.

$author_name

This parameter value allowed to set the page author name.

Example Usage

Here is the full example of setAuthor method.

<?php
class Blog extends SENE_Controller {
  public function __construct(){
    parent::__construct();
  }
  public function index(){
    ...
    $this->setAuthor('Daeng R');
    ...
  }
}