CI4 - ROUTES - FILTER PROBLEM |
Hello Everyone,
I am using CI 4.0.4 XAMPP CONTROL 3.2.4 I AM USING CI 4.0.4 FOR MY ONGOING LIVE PROJECT CURRENTLY I AM FACING SOME ISSUE MY WEBSITE URL : http://localhost/shashi/public/ , i am not using spark I HAVE CREATED A CONTROLLER Code: <?php namespace App\Controllers; In App\Routes: Code: $routes->group('dash',['filter' => 'auth'], function($routes) { Now when i open : http://localhost/shashi/public/dash/dashboard http://localhost/shashi/public/dash/adddash page opens and filter -> auth ( session check for login user ) also work - as i check in 2 bowers but suppose i open http://localhost/shashi/public/dash/dash...ystemprice page open , but why filter is not working ?? as it already route to http://localhost/shashi/public/dash/adddash any thing missing ? if some one can get my controller/methods name - then he/she can open the page and do the wrong stuff - as filter is not working which has session check for login user please let me know
CI auto-routes for you - see https://codeigniter4.github.io/userguide...outes-only
You should never have this setting enabled in production. (10-27-2020, 01:09 PM)tgix Wrote: CI auto-routes for you - see https://codeigniter4.github.io/userguide...outes-only i am extremely thankful 5/5 at-least you reply i think user-guide should be more simple with more examples thanks again
Please remember that this is a community forum providing user-to-user support.
|
Welcome Guest, Not a member yet? Register Sign In |