function run()
 {
     if (empty($this->_active_view)) {
         return $this->throwError('No active view specified. Unable to run application.');
     }
     if (zmgEnv::isRPC() && $this->_active_view == "ping") {
         zmgFactory::getRequest()->sendHeaders($this->_viewtype);
         echo "                                         ";
         return;
     }
     $this->_template->run($this->_active_view, $this->getSubView(), $this->_viewtype);
 }
 function getTemplates()
 {
     return zmgTemplateHelper::getTemplates();
 }