/** * @param $model * @param $type * @param $input * @return $this */ public function preProcess($model, $type, $input) { $structure = $input->get('structure'); $structure['news_id'] = (int) array_get($structure, 'news_id'); $input->put('structure', $structure); return parent::preProcess($model, $type, $input); }
public function preProcess($model, $type, $input) { $structure = $input->get('structure'); $structure['per_page'] = (int) array_get($structure, 'per_page'); $structure['category_ids'] = (array) array_get($structure, 'category_ids'); $structure['ignore_page'] = (bool) array_get($structure, 'ignore_page'); $input->put('structure', $structure); return parent::preProcess($model, $type, $input); }