getAuthor method

The getAuthor is for retrieving text that set from setAuthor method.

Basic Usage

Here is the basic usage for getAuthor method from SENE_Controller class.

$this->getAuthor(): string


This method does not require any parameter.

Example Usage

Usually this method called inside a layout file. Here is the basic example for getAuthor method that implemented on col-1.php layout file.

<!DOCTYPE html>
  <meta name="author" content="<?php echo $this->getAuthor(); ?>">

And then, here is the full file and directory structures.

│ └── home.php
└── view/
  └── front/
    └── page/
      └── col-1.php

Here is the content of home.php controller file.

class Home extends SENE_Controller
  public function __construct()
  public function index()
    $this->setAuthor('Daeng R',$data);

The meta author page name will be Daeng R.