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


setAuthor method has 1 required parameter.


This parameter value allowed to set the page author name.

Example Usage

Here is the full example of setAuthor method.

class Blog extends SENE_Controller {
  public function __construct(){
  public function index(){
    $this->setAuthor('Daeng R');