Welcome Guest, Not a member yet? Register   Sign In
Routing - ignore first segment
#4

Thanks for the replies and sorry for not being more clear on what I want to achieve.


(07-15-2020, 05:20 AM)laynebay Wrote:
Code:
$routes->get('/foobar/home/index', 'Home::index');

I know I could do this but then it would work for Home::index only. What I look for is a one routing definition that would cover all of my controllers and methods. This is what I in fact tried and found not to deliver:
PHP Code:
$routes->add'(:segment)/(:segment)/(:segment)/(:any)''$2::$3/$4' ); 
Reply


Messages In This Thread
Routing - ignore first segment - by Jan Zelenka - 07-15-2020, 03:52 AM
RE: Routing - ignore first segment - by abrar09 - 07-15-2020, 04:20 AM
RE: Routing - ignore first segment - by laynebay - 07-15-2020, 05:20 AM
RE: Routing - ignore first segment - by Jan Zelenka - 07-16-2020, 12:53 AM
RE: Routing - ignore first segment - by jreklund - 07-16-2020, 01:24 AM
RE: Routing - ignore first segment - by jreklund - 07-16-2020, 07:21 AM
RE: Routing - ignore first segment - by laynebay - 07-16-2020, 11:01 AM
RE: Routing - ignore first segment - by jreklund - 07-17-2020, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB