/**
  *
  * @param type $tpl
  * @return \CsTemplate
  */
 public function load($key)
 {
     $tplFile = $this->path->getPath($key);
     if (JFile::exists($tplFile)) {
         $properties = $this->getProperties();
         extract($properties, EXTR_REFS);
         include $tplFile;
     }
     return $this;
 }
 /**
  * Include another template into current template
  * @return \Zo2Html
  */
 public function load($key)
 {
     $tplFile = $this->_path->getPath($this->_namespace . '/' . $key);
     if ($tplFile) {
         $properties = $this->getProperties();
         extract($properties, EXTR_REFS);
         include $tplFile;
     }
     return $this;
 }
Exemplo n.º 3
0
 /**
  * 
  * @param type $key
  * @return string|boolean
  */
 public function getPath($key)
 {
     return $this->_path->getPath($key);
 }