예제 #1
0
 protected function _beforeRoute($fw, $args = null)
 {
     AbstractController::_beforeRoute($fw, $args);
     $this->_viewInstance = View::instance();
     $this->setPageTitle($this->__('WebHomeBank'));
     Design::instance()->addJs('jquery/jquery-2.1.4.min.js', 'header', -100)->addJs('whb/i18n.js')->addInlineJs("var LANGUAGE='{$fw->get('LANGUAGE')}';\nvar CURRENCY='{$this->getXhbSession()->getCurrencyCode()}';\nvar i18n = new I18n(LANGUAGE, CURRENCY);");
     $this->canCacheOutput(false);
     $this->_setupLayoutBlocks();
 }
예제 #2
0
 protected function _getRequestCacheKeyInfo()
 {
     $cacheKeyInfo = parent::_getRequestCacheKeyInfo();
     $cacheKeyInfo[] = $this->getXhbSession()->getId();
     $cacheKeyInfo[] = $this->getXhbSession()->getModel()->getUniqueKey();
     $cacheKeyInfo[] = $this->getXhbSession()->getCurrencyCode();
     $cacheKeyInfo[] = $this->getSession()->getTheme();
     $cacheKeyInfo[] = $this->getSession()->getLocale();
     return $cacheKeyInfo;
 }