Welcome Guest, Not a member yet? Register   Sign In
Routing with variables
#6

(This post was last modified: 11-18-2021, 02:38 AM by captain-sensible.)

i would like you to try domain.something/admin/reports/stores/6 for web browser address bar at top url but make the route
Code:
$routes->get('admin/reports/stores/:num', 'Brands::stores/$1');
forget about the filter for now

and take out default value in method for now

i've taken out the forward slash in front of admin as well
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
Routing with variables - by chakycool - 11-18-2021, 01:17 AM
RE: Routing with variables - by captain-sensible - 11-18-2021, 01:27 AM
RE: Routing with variables - by seunex - 11-18-2021, 01:27 AM
RE: Routing with variables - by captain-sensible - 11-18-2021, 01:31 AM
RE: Routing with variables - by chakycool - 11-18-2021, 02:04 AM
RE: Routing with variables - by captain-sensible - 11-18-2021, 02:32 AM
RE: Routing with variables - by chakycool - 11-18-2021, 02:46 AM
RE: Routing with variables - by captain-sensible - 11-18-2021, 03:07 AM
RE: Routing with variables - by chakycool - 11-18-2021, 03:36 AM
RE: Routing with variables - by InsiteFX - 11-18-2021, 03:51 AM
RE: Routing with variables - by chakycool - 11-18-2021, 03:58 AM
RE: Routing with variables - by captain-sensible - 11-18-2021, 08:11 AM
RE: Routing with variables - by chakycool - 11-21-2021, 01:47 AM
RE: Routing with variables - by iRedds - 11-23-2021, 10:10 PM
RE: Routing with variables - by chakycool - 11-24-2021, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB