Example #1
0
 /**
  * __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);
 }
Example #2
0
 /**
  * @see \McGowan\View::beforeRender
  */
 protected function beforeRender()
 {
     $this->set('content', $this->_content);
     $this->set('navigation', $this->_navigation);
     parent::beforeRender();
 }
Example #3
0
 public function __construct($filename)
 {
     parent::__construct();
     $this->template_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates');
     $this->template_file($filename);
 }
Example #4
0
 protected function beforeRender()
 {
     $this->set('text', $this->_value);
     parent::beforeRender();
 }