![]() |
When using CodeIgniter 4, the Presenter show(id) method appears to overwrite custom functions that I have added. This results in a 404 error when trying to access these functions, with the message:
Code: { However, if I configure the routes in Routes.php to exclude the show method using ['except' => 'show'], the custom functions work correctly. PHP Code: $routes->presenter('example', ['except' => 'show', 'filter'=> 'jwt', 'namespace' => '\App\Controllers\Api']); How to exclude only example/(;segment). So additional functions will not be overwritten. Any suggestions? Code: +--------+-------------------------+--------------------+--------------------------------------------------------------------+----------------+---------------+ https://codeigniter.com/user_guide/incom...comparison |
Messages In This Thread |
Potential Bug Report: Presenter::show(id) Overwrites Custom Functions - by MZahov - 06-12-2024, 01:48 AM
RE: Potential Bug Report: Presenter::show(id) Overwrites Custom Functions - by kenjis - 06-12-2024, 02:47 AM
RE: Potential Bug Report: Presenter::show(id) Overwrites Custom Functions - by MZahov - 06-12-2024, 03:41 AM
|