public function listReportsAction()
 {
     $xml = new SimpleXMLElement('<rows/>');
     ReportBaseClosure::generateXMLTree($xml);
     header('content-type: text/xml');
     $this->view->content = $xml->asXml();
     $this->render('list');
 }
 public function listAction()
 {
     $xml = new SimpleXMLElement('<rows/>');
     // Root handler
     $root = $xml->addChild('row');
     $root->addAttribute('id', 'rootId');
     $root->addChild('cell', __('Report List'));
     $root->addChild('cell', '');
     ReportBaseClosure::generateXMLTree($root);
     header('content-type: text/xml');
     $this->view->content = $xml->asXml();
     $this->render('list');
 }