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

Hi,

Below is my routing but I can't get the last uri segment in to the function.

PHP Code:
$routes->get('/admin/reports/stores/:num''Admin/Reports/Brands::stores/$1',['filter'=>'accessfilter']); 

here is the function

PHP Code:
public function stores($id false){
    echo $id;


not sure what I'm doing wrong here  Sad
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