Exemplo n.º 1
0
 /**
  * Execute the request
  *
  * @param  MvcEvent $event
  * @return mixed
  */
 public function onDispatch(MvcEvent $event)
 {
     $store = $this->getStore();
     $request = $event->getRequest();
     $service = $this->getServiceLocator();
     $locale = $service->get('AdminLocale');
     $parent = $request->getQuery('parentId');
     if (empty($store['adminLocale'])) {
         $store['adminLocale'] = $locale->getCurrent();
     }
     if (!empty($parent)) {
         $store['parentId'] = $parent;
     }
     return parent::onDispatch($event);
 }
Exemplo n.º 2
0
 /**
  * Step action
  */
 public function stepAction()
 {
     if (!$this->isAllowed()) {
         $this->getResponse()->setStatusCode(403);
         return;
     }
     return parent::stepAction();
 }