コード例 #1
0
 /**
  * Controller pre-dispatch method
  * Check if current section is found and is allowed
  *
  * @return Mage_Backend_Adminhtml_System_ConfigController
  */
 public function preDispatch()
 {
     parent::preDispatch();
     if ($this->getRequest()->getParam('section')) {
         $this->_isSectionAllowed = $this->_isSectionAllowed($this->getRequest()->getParam('section'));
     }
     return $this;
 }
コード例 #2
0
 /**
  * Controller pre-dispatch method
  * Check if current section is found and is allowed
  *
  * @return Mage_Backend_Controller_ActionAbstract
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $section = null;
     if (!$this->getRequest()->getParam('section')) {
         $section = $this->_configStructure->getFirstSection();
         $this->getRequest()->setParam('section', $section->getId());
     } else {
         $this->_isSectionAllowed($this->getRequest()->getParam('section'));
     }
     return $this;
 }