Example #1
0
 protected function executeStart()
 {
     try {
         parent::executeStart();
         header('Content-Type: application/xml');
     } catch (Exception $e) {
         throw $e;
     }
 }
Example #2
0
 /**
  * nastavime XML header
  */
 protected function executeStart()
 {
     try {
         parent::executeStart();
         $this->config->setOutputFilter(new OutputFilterPageRSS($this));
         header('Content-Type: application/xml');
     } catch (Exception $e) {
         throw $e;
     }
 }