public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public function init()
 {
     parent::init();
     $this->view->doctype('XHTML1_STRICT');
     $this->view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8');
     $this->_helper->viewRenderer->setNoRender(true);
     $this->view->getHelper('baseUrl')->setBaseUrl(BASE_URL);
     defined('LAST_TEMP') || define('LAST_TEMP', BASE_URL . UDS . Base_Constant_Server::LAST_TEMP_DIRECTORY . UDS);
     $registry = Zend_Registry::getInstance();
     $registry->moduleName = $this->_request->getModuleName();
     $registry->controllerName = $this->_request->getControllerName();
     $registry->actionName = $this->_request->getActionName();
     $modulePath = $registry->modulePaths[$registry->moduleName];
     $controllerPath = $registry->controllerPaths[$registry->moduleName];
     $registry->modulePath = $modulePath;
     $this->view->moduleName = $registry->moduleName;
     $this->view->controllerName = $registry->controllerName;
     $this->view->actionName = $registry->actionName;
     /** title page, site name, meta tag*/
     //$this->view->siteName = $registry->appConfig['siteName'];
     $hTranslate = new Base_Helper_Translate();
     $this->view->siteName = $hTranslate->translate(Base_Constant_Client::getInstance()->getSetting('siteName'), 'value');
     $description = '<meta name="description" content="' . $hTranslate->translate(Base_Constant_Client::getInstance()->getSetting('meta_desc'), 'value') . '">';
     $keywords = '<meta name="keywords" content="' . $hTranslate->translate(Base_Constant_Client::getInstance()->getSetting('meta_keywords'), 'value') . '">';
     $author = '<meta name="author" content="' . $hTranslate->translate(Base_Constant_Client::getInstance()->getSetting('meta_author'), 'value') . '">';
     $this->view->metaTag = $description . $keywords . $author;
     /** title page, site name, meta tag*/
     $layoutPath = $modulePath . DS . 'views' . DS . 'layouts';
     if (!is_dir($layoutPath)) {
         $layoutPath = WWW_PATH . DS . 'views' . DS . 'layouts';
     }
     Zend_Layout::startMVC(array("layout" => 'layout', "layoutPath" => $layoutPath));
     $registry['mvcOptions'] = array("layout" => 'layout', "layoutPath" => $layoutPath);
     is_null($this->_request->getParam('ajax')) || $this->_helper->layout()->disableLayout();
     $registry->headLink = $this->_cacheHeadLink();
     $registry->headScript = $this->_cacheHeadScript();
     $registry->currentUser = new Base_Php_Overloader(Zend_Auth::getInstance()->getIdentity());
     $this->initOther();
 }