App\Core\Controller::__construct PHP Method

__construct() public method

Create a new Controller instance.
public __construct ( )
    public function __construct()
    {
        // Setup the used Template to default, if it is not already defined.
        if (!isset($this->template)) {
            $this->template = Config::get('app.template');
        }
    }

Usage Example

Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->config->set_item(array('view', 'wrap'), true);
     $this->config->set_item(array('view', 'header'), 'main/common/header.php');
     $this->config->set_item(array('view', 'footer'), 'main/common/footer.php');
     $this->_init();
 }
All Usage Examples Of App\Core\Controller::__construct