setContentLanguage method

setContentLanguage set content language for meta content language, this method used only with getContentLanguage method.

Basic Usage

The basic usage for setContentLanguage method.

setContentLanguage(string $language_codename): $this

Parameters

setContentLanguage method has 1 required parameter.

$language_codename

The language codename value, like en-US, en-DE, etc.

Example Usage

Here is the full example of setContentLanguage method.

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