예제 #1
0
 /**
  * __construct
  *
  * @access public
  * @param array
  * @return void
  */
 public function __construct($value = '')
 {
     parent::__construct(null, array());
     $this->template_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR);
     $this->template_file('text.tmpl.php');
     $this->value($value);
 }
예제 #2
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);
 }
예제 #3
0
 public function __construct($filename)
 {
     parent::__construct();
     $this->template_path(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'templates');
     $this->template_file($filename);
 }
예제 #4
0
 /**
  * __construct
  *
  * Creates an instance of the Template view.
  *
  * @access pubic
  * @param void
  * @return void
  */
 public function __construct(array $data = array())
 {
     parent::__construct(ROOT_PATH . 'templates' . DIRECTORY_SEPARATOR . 'template.tmpl.php', $data);
     $this->initNavigation();
 }
예제 #5
0
 /**
  * __construct
  *
  * Creates an instance of the Template view.
  *
  * @access pubic
  * @param void
  * @return void
  */
 public function __construct(array $data = array())
 {
     parent::__construct(ROOT_PATH . 'templates' . DIRECTORY_SEPARATOR . 'pages/getting-started.tmpl.php', $data);
 }