public function deletePhotoMaterial_action($material_id) { // All methods inside this controller are only accessible for admins (= users that have role type 7) Auth::checkAdminAuthentication(); MaterialModel::deletePhotoMaterial($material_id); Redirect::to('material/index/0'); }