setIcon method

setIcon method is for set meta description value for a page, this method only suitable with getIcon method.

Basic Usage

The basic usage for setIcon method is:

setIcon(string $icon_location): controllerObject

Parameters

setIcon method has 1 required parameter.

$icon_location

This parameter value allowed to set the icon location.

Example Usage

Here is the full example of setIcon method.

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