RESTful resource handling and delete: controller method not found |
Hi all,
I created a controller User in a subfolder ('administration'): App/Controllers/Administration/User.php Acording to https://codeigniter4.github.io/userguide...stful.html, I added a route (config\routes.php): Code: $routes->resource('administration/user', ['placeholder' => '(:num)']); Within my User controller, I created the corresponding methods: PHP Code: <?php URI requests to: - http://localhost/administration/user/1/delete or - http://localhost/administration/user/delete/1 result in a '404 - File Not Found | Controller method is not found: user' error So it seems that the URI is not correctly translated to the /administration/user controller; user is seen as method... ![]() Can anyone help me with this weird issue? Many thanks in advance! |
Messages In This Thread |
RESTful resource handling and delete: controller method not found - by Zeff - 01-19-2022, 06:23 AM
RE: RESTful resource handling and delete: controller method not found - by xenomorph1030 - 01-19-2022, 06:55 AM
RE: RESTful resource handling and delete: controller method not found - by Zeff - 01-19-2022, 08:03 AM
RE: RESTful resource handling and delete: controller method not found - by xenomorph1030 - 01-19-2022, 08:52 AM
RE: RESTful resource handling and delete: controller method not found - by iRedds - 01-20-2022, 07:06 AM
|