setCanonical method

setCanonical the current page, this method used only with getCanonical method.

Basic Usage

The basic usage for setCanonical method.

setCanonical(string $url): $this


setCanonical method has 1 required parameter.


This parameter value allowed to set the page canonical URL.

Example Usage

Here is the full example of setCanonical method.

class Blog extends SENE_Controller {
  public function __construct(){
  public function index(){