public function action_updateData($table = null) { if (!Input::post() || !Sentry::user()->has_access('customers_update')) { Response::redirect(''); } $data['table'] = $table; $data['json'] = Model_Ajax::updateData(Input::post(), $table); $this->template->content = View::forge('ajax/view', $data); }