Cant Access App\Filters directory CodeIgniter4

I’m trying to makes a JWT Filter with CI4, but when I about to set my filter in /Config/Filter.php it always says the class is not found although it definitely in the /App/Filters/ directory. I’ve been trying to make new directory in /App and named it AuthFilter still no luck /Config/Filter.php : <?php namespace Config;… Read More Cant Access App\Filters directory CodeIgniter4

Return view after ajax post to controller in ci4

I try to achieve to return a view after an ajax call with jquery. HTML <a class="btn" data-value="10"> jQuery $(document).on("click", ".btn", function(){ $.ajax({ url: ‘http://localhost:8080/test/testmenu/&#8217;, type: ‘POST’, data: { id : $(this).data(‘value’)}, success: function(response){ // What to do? } }) }) CI4 Route $routes->post(‘test/testmenu/’,’Menu::openMenu’); CI4 Controller public function openMenu(){ $menu = model(\MenuModel::class); $menu_id = $this->request->getPost("id");… Read More Return view after ajax post to controller in ci4