/** * Prepare execute hook. * * @throws \LogicException * @return void */ protected function prepareExecute() { parent::prepareExecute(); if (!$this->stateData) { throw new \LogicException('You have to set state name in controller.'); } }
/** * Prepare execute hook. * * @return void */ protected function prepareExecute() { parent::prepareExecute(); $this->batch = $this->input->get('batch', array(), 'array'); unset($this->batch['task']); // Sanitize data. foreach ($this->batch as $key => &$value) { if ($value == '') { unset($this->batch[$key]); } } }