putThemeContent Method

This method will be loaded a theme content from a file.

The $content_location value will be reffered to a file name under app/view/THEME/.

This value also can contain path prefix of subdirectory before the filename.

Content Location Requirements

The valid content should only put inside in a directory beneath current selected theme directory.

|- app
|-- view
|--- front
|---- home
|----- home.php
|----- home_bottom.php

Basic Usage:

Here is the basic usage of Controller::putThemeContent.

Controller::putThemeContent(string $content_location[, array $data]): ControllerObject


Here is the example for putThemeContent method:

class Home extends SENE_Controller
  public function __construct()
  public function index()
    $data = array();

So, the homepage theme and col-1 layout should be existed on the directory structure.

- app
|-- view
|--- homepage
|---- home
|----- slider.php
|----- three_values.php
|---- page
|----- col-1.php

loadLayout Method putJsContent Method