Example #1
0
 public function xmlAction()
 {
     //find if xml.phtml exists for this control
     $name = $this->getRequest()->getControllerName();
     $path = $this->view->getScriptPath("") . $name . "/xml.phtml";
     if (file_exists($path)) {
         //if so, then we support xml
         parent::xmlAction();
     } else {
         $this->setpagetitle($this->default_title());
         $this->render("noxml", null, true);
     }
 }