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

(This post was last modified: 11-24-2021, 02:23 AM by InsiteFX. Edit Reason: forward slashes should be back slashes on namesapce )

Try this your missing the () on :num.

PHP Code:
$routes->get('/admin/reports/stores/:num''Admin/Reports/Brands::stores/$1'); 

// should be
$routes->get('/admin/reports/stores/(:num)''Admin\Reports\Brands::stores/$1'); 

Let me know if that works for you.

EDITED: according to @iRedds
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
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