Welcome Guest, Not a member yet? Register   Sign In
Benchmarking Ci4 router
#8

PHP Code:
$routes->get('{segment}''RegionController@details/$1'); 
$routes->get('{segment}/for-sale''ForSaleConroller@forRegion/$1'); 
$routes->get('{segment}/{segment}/for-sale''ForSaleConroller@forCommune/$1/$2'); 

Routes like these would allow the format you've listed. You could then use $_GET vars for sorting, search term, etc if needed.

I'm not trying to tell you how to do it, just trying to understand the benefits of having 35,000 routes, and how you would even manage those if they were all hardcoded.
Reply


Messages In This Thread
Benchmarking Ci4 router - by tony.a - 09-11-2019, 03:22 PM
RE: Benchmarking Ci4 router - by tony.a - 09-12-2019, 01:36 AM
RE: Benchmarking Ci4 router - by kilishan - 09-12-2019, 06:28 AM
RE: Benchmarking Ci4 router - by albertleao - 09-12-2019, 08:21 AM
RE: Benchmarking Ci4 router - by tony.a - 09-12-2019, 10:07 AM
RE: Benchmarking Ci4 router - by kilishan - 09-12-2019, 10:17 AM
RE: Benchmarking Ci4 router - by tony.a - 09-12-2019, 10:22 AM
RE: Benchmarking Ci4 router - by kilishan - 09-12-2019, 10:29 AM
RE: Benchmarking Ci4 router - by tony.a - 09-12-2019, 12:02 PM
RE: Benchmarking Ci4 router - by kilishan - 09-12-2019, 12:47 PM
RE: Benchmarking Ci4 router - by tony.a - 09-12-2019, 11:47 PM
RE: Benchmarking Ci4 router - by tony.a - 09-13-2019, 01:39 AM
RE: Benchmarking Ci4 router - by chris.m - 08-06-2020, 05:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB