Example #1
0
 public function output($tpl = '', $aData = array(), $aEvent = array())
 {
     $this->tplFile = $tpl;
     // Объединяем данные для парсинга с поступившими данными
     if (!empty($aData)) {
         $this->aParse = array_merge($this->aParse, $aData);
     }
     $this->appendGlobalTemplateEventData($aEvent);
     $this->appendSitemapTemplateData();
     // парсим
     $szContent = $this->render($this->tplFile);
     if (!empty($this->layout)) {
         $this->aParse['content_for_layout'] = $szContent;
         $szContent = $this->render($this->layout);
     }
     $this->htmlResponse = $szContent;
     parent::output();
 }