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