Skip to content

Commit

Permalink
Change: ResourceController to BaseController
Browse files Browse the repository at this point in the history
  • Loading branch information
reactmore committed Jul 24, 2024
1 parent 439b70a commit c4df830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Controllers/Admin/JurusanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 4 additions & 2 deletions app/Controllers/Admin/KelasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c4df830

Please sign in to comment.