![]() |
Route wont work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Route wont work (/showthread.php?tid=92261) Pages:
1
2
|
RE: Route wont work - 4usol - 01-02-2025 Hi, i've this service('auth')->routes($routes, ['except' => ['login', 'register','change-password']]); $routes->get('login', '\App\Controllers\Shield\LoginController::loginView'); //handle in customized controller $routes->post('login', '\App\Controllers\Shield\LoginController::loginAction'); //handle in customized controller $routes->get('register', '\App\Controllers\Shield\RegisterController::registerView'); RE: Route wont work - michalsn - 01-02-2025 I checked the project where I use Shield and the auto routes improved. Everything is working properly. There is no such route as change-password. And you should specify register route for POST. |