diff --git a/app/Controllers/Admin/JurusanController.php b/app/Controllers/Admin/JurusanController.php index 4bdedc8..286c024 100644 --- a/app/Controllers/Admin/JurusanController.php +++ b/app/Controllers/Admin/JurusanController.php @@ -5,8 +5,9 @@ use App\Models\JurusanModel; use CodeIgniter\Exceptions\PageNotFoundException; use CodeIgniter\RESTful\ResourceController; +use App\Controllers\BaseController; -class JurusanController extends ResourceController +class JurusanController extends BaseController { protected JurusanModel $jurusanModel; diff --git a/app/Controllers/Admin/KelasController.php b/app/Controllers/Admin/KelasController.php index 52740dd..4d8096c 100644 --- a/app/Controllers/Admin/KelasController.php +++ b/app/Controllers/Admin/KelasController.php @@ -5,14 +5,16 @@ use App\Models\JurusanModel; use App\Models\KelasModel; use CodeIgniter\Exceptions\PageNotFoundException; -use CodeIgniter\RESTful\ResourceController; +use App\Controllers\BaseController; -class KelasController extends ResourceController +class KelasController extends BaseController { protected KelasModel $kelasModel; protected JurusanModel $jurusanModel; + protected $generalSettings; + public function __construct() { $this->kelasModel = new KelasModel();