protected function _init() { parent::_init(); $this->_view = new Zend_View(array('scriptPath' => dirname(__FILE__) . '/views')); $website = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); $this->_view->websiteUrl = $website->getUrl(); }
protected function _init() { parent::_init(); $this->_view = new Zend_View(array('scriptPath' => dirname(__FILE__) . '/views')); $this->_websiteHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); $this->_view->websiteUrl = $this->_websiteHelper->getUrl(); array_push($this->_cacheTags, __CLASS__); }
protected function _init() { parent::_init(); $this->_view = new Zend_View(array('scriptPath' => dirname(__FILE__) . '/views')); $this->_view->setHelperPath(APPLICATION_PATH . '/views/helpers/'); $this->_websiteHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); $this->_cacheable = false; $this->_cachePrefix = strtolower(__CLASS__) . '_'; array_push($this->_cacheTags, strtolower(__CLASS__)); }
protected function _init() { parent::_init(); $this->_view = new Zend_View(array('scriptPath' => dirname(__FILE__) . '/views')); $website = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); $this->_view->websiteUrl = $website->getUrl(); //checking if its area and random if (!empty($this->_options) && reset($this->_options) === self::FEATURED_TYPE_AREA && 1 === intval(end($this->_options))) { $this->_cacheable = false; } }
protected function _init() { parent::_init(); $this->_sessionHelper = Zend_Controller_Action_HelperBroker::getExistingHelper('session'); $this->_websiteHelper = Zend_Controller_Action_HelperBroker::getExistingHelper('website'); // $this->_view = new Zend_View(array( // 'scriptPath' => dirname(__FILE__) . '/views' // )); $this->_view = clone Zend_Layout::getMvcInstance()->getView(); $this->_view->addScriptPath(dirname(__FILE__) . '/views'); $this->_view->websiteUrl = $this->_websiteHelper->getUrl(); }
protected function _init() { parent::_init(); if (!empty($this->_toasterOptions)) { $this->_themeFullPath = $this->_toasterOptions['themePath'] . $this->_toasterOptions['currentTheme']; } if (isset($this->_options) && !empty($this->_options)) { $this->_refresh = isset($this->_options['refresh']) ? $this->_options['refresh'] : false; if ($this->_refresh) { $this->_cacheable = false; } } }
protected function _init() { parent::_init(); $this->_name = $this->_options[0]; $this->_pageId = $this->_type == Application_Model_Models_Container::TYPE_STATICCONTENT || $this->_type == Application_Model_Models_Container::TYPE_STATICHEADER || $this->_type == Application_Model_Models_Container::TYPE_PREPOPSTATIC ? 0 : $this->_toasterOptions['id']; $contentId = $this->_name . '_' . $this->_type . '_pid_' . $this->_pageId; $separator = '_'; if (in_array('readonly', $this->_options)) { $separator = '_readonly_'; } array_push($this->_cacheTags, preg_replace('/[^\\w\\d_]/', '', $contentId)); $this->_cacheId = $contentId . $separator . Zend_Controller_Action_HelperBroker::getStaticHelper('Session')->getCurrentUser()->getRoleId(); }
protected function _init() { parent::_init(); $this->_view = new Zend_View(array('scriptPath' => dirname(__FILE__) . '/views')); $this->_websiteHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('website'); $this->_view->websiteUrl = $this->_websiteHelper->getUrl(); if (is_array($this->_options) && isset($this->_options[1])) { $this->_cacheable = !($this->_options[1] === 'recaptcha' || $this->_options[1] === 'captcha'); } if (is_array($this->_options) && isset($this->_options[0]) && strtolower($this->_options[0]) === 'conversioncode') { $this->_cacheable = false; } $this->_cacheTags = array(self::WFORM_CACHE_TAG); }
protected function _init() { parent::_init(); $this->_sessionHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('session'); $this->_mobileHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('mobile'); }
protected function _init() { parent::_init(); array_push($this->_cacheTags, 'pageid_' . $this->_toasterOptions['id']); }