/** * __construct * * @access public * @param array * @return void */ public function __construct($name = '', array $data = array()) { parent::__construct(null, $data); $this->template_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR); $this->template_file('element.tmpl.php'); $this->_attributes = $this->defaultAttributes(); $this->name($name); }
/** * @see \McGowan\View::beforeRender */ protected function beforeRender() { $this->set('content', $this->_content); $this->set('navigation', $this->_navigation); parent::beforeRender(); }
public function __construct($filename) { parent::__construct(); $this->template_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates'); $this->template_file($filename); }
protected function beforeRender() { $this->set('text', $this->_value); parent::beforeRender(); }