Example #1
0
 /**
  * show the template
  *
  * @access public
  * @param  string $sName name of the template
  * @param  \Apollina\Template $oTemplate datas to add
  * @return bool
  */
 public function display($sName = null, \Apollina\Template $oTemplate = null)
 {
     if ($oTemplate !== null) {
         if ($this->_oTemplateLink !== null) {
             $aVar = $this->getAllAssign();
             $aVar = array_merge($aVar, $this->_oTemplateLink->getAllAssign());
             $this->assignAll($aVar);
         }
     }
     $sTemplate = $this->fetch($sName);
     echo $sTemplate;
 }