function __construct($vars = array()) { // defaults $this->vars = array("body" => "", "_page" => array("view" => "")); $this->client = array(); $this->vars = array_merge($this->vars, $vars); $this->hash = $this->getHash("", $vars); $file = $this->getTemplate(); parent::__construct($file, $this->vars); }
function __construct($file = '', $vars = '') { $file = getPath('views/' . $file); return parent::__construct($file, $vars); }
function __construct($file = '', $vars = '') { $file = VIEW_PATH . $file; return parent::__construct($file, $vars); }