Route error when the value is greater than 9 |
My configuration:
Code: $routes->group('members', ['namespace' => 'App\Controllers'], function ($routes) { When "(:num)" is less than 10, it's true. When "(:num)" is greater than or equal to 10, it's false.
I'm on my phone commuting so I'm just guessing: I think the route function should be defined as Members::aaa/$1/$2 so you pass the (:num) segments as two arguments properly.
(01-20-2021, 11:40 PM)tgix Wrote: I'm on my phone commuting so I'm just guessing: I think the route function should be defined as Members::aaa/$1/$2 so you pass the (:num) segments as two arguments properly.This is function in Controller: Code: public function aaa($slug = '') |
Welcome Guest, Not a member yet? Register Sign In |