Welcome Guest, Not a member yet? Register   Sign In
Route with variable gives 404
#7

(12-17-2020, 08:57 AM)paulbalandan Wrote:
PHP Code:
$routes->get('/backend/profile''Backend\Profile::index');
$routes->get('/backend/profile/(:num)''Backend\Profile::index/$1'); 

Paulbalandan is right. The second parameter must match your namespace and use backslashes.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
Route with variable gives 404 - by sjender - 12-11-2020, 07:50 AM
RE: Route with variable gives 404 - by neoneeco - 12-12-2020, 02:53 AM
RE: Route with variable gives 404 - by sjender - 12-14-2020, 03:38 AM
RE: Route with variable gives 404 - by ReivaxBird - 12-14-2020, 08:25 AM
RE: Route with variable gives 404 - by includebeer - 12-21-2020, 07:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB