resetThemeContent method

reset the teme content.

Basic Usage

The basic usage for resetThemeContent method is.

resetThemeContent(): $this

Parameters

There is no parameter available for resetThemeContent method.

Example Usage

Here is the content of home.php controller file.

class Home extends SENE_Controller
{
  public function __construct()
  {
    parent::__construct();
    $this->setTheme('front');
  }
  public function index()
  {
    ...
    $this->setAuthor('Daeng R',$data);
    $this->loadLayout('col-1',$data);

    // buffered view will be reseted
    $this->resetThemeContent();

    //this will be used
    $this->setAuthor('Daeng R',$data);
    $this->loadLayout('col-1',$data);
    $this->render();
  }
}