function preDispatch() { $this->country = preg_replace("[^A_Z]", '', $this->_request->country); if (!$this->country) { throw new Am_Exception_InputError("country is empty in " . get_class($this)); } $this->setActiveMenu('countries'); return parent::preDispatch(); }
public function init() { parent::init(); $this->view->headStyle()->appendStyle("\n#plan-TPL { display: none; }\n "); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/adminproduct.js"); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/ckeditor/ckeditor.js"); $this->getDi()->plugins_payment->loadEnabled()->getAllEnabled(); }
public function preDispatch() { parent::preDispatch(); class_exists('Am_Form_Brick', true); //pre-load }
public function preDispatch() { parent::preDispatch(); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/resourceaccess.js"); }
public function preDispatch() { parent::preDispatch(); $this->lists = $this->getDi()->newsletterListTable->getAdminOptions(); }
public function indexAction() { $this->getTable()->syncSortOrder(); parent::indexAction(); }
public function init() { parent::init(); $this->view->headStyle()->appendStyle("\n.billing-plan.collapsed .row { display: none; }\n.billing-plan.collapsed .row.terms-text-row { display: block; }\n.billing-plan .terms-text-row { font-decoration: italic; font-size: 120%; padding: 4px;}\n#plan-TPL { display: none; }\n "); $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/adminproduct.js"); $this->getDi()->plugins_payment->loadEnabled()->getAllEnabled(); }
public function init() { parent::init(); $this->view->headScript()->appendScript($this->getJs()); $this->view->placeholder('after-content')->append("<div id='run-form' style='display:none'></div>"); }
public function indexAction() { if (in_array($this->grid->getCurrentAction(), array('edit', 'insert'))) { $this->layout = 'admin/user-layout.phtml'; } parent::indexAction(); }
public function init() { $this->getView()->headScript()->appendScript($this->getJs()); if ($language = $this->_request->get('language')) { $this->language = $language; } else { $locale = new Zend_Locale(Zend_Registry::get('Zend_Translate')->getLocale()); $this->language = $locale->getLanguage(); } parent::init(); }
public function init() { parent::init(); $this->view->placeholder('after-content')->append('<div id="coupons" style="display:none"></div>'); $couponsTitle = ___('Coupons'); $this->view->headScript()->appendScript(<<<CUT function amOpenCoupons(id) { var url = window.rootUrl + '/admin-coupons/detail/id/'+id + '?_detail_filter=' + escape(\$("input[name='_coupon_filter']").val()); \$("#coupons").load(url, function(){ \$("#coupons .grid-wrap").ngrid(); \$("#coupons").dialog({ autoOpen: true ,width: 800 ,height: 600 ,closeOnEscape: true ,title: "{$couponsTitle}" ,modal: true }); } ); } CUT ); }
public function indexAction() { Am_Di::getInstance()->userTable->syncSortOrder(); parent::indexAction(); }
public function init() { parent::init(); $this->view->headScript()->appendScript($this->getJs()); $this->view->placeholder('after-content')->append("<br /><br />" . "<div id='detail'></div>" . "<div id='run-form' style='display:none'>" . (string) $this->createRunForm() . "</div>"); }