dioscouri / f3-admin

3 stars 1 forks source link

TOKENIZE Routes #18

Closed ChrisFrench closed 10 years ago

ChrisFrench commented 10 years ago

IF we Tokenize our routes in our router files we could make the admin link whatever we wished on sites avoiding having the page just be /admin we could also do the same for blog, whatever

we set the routes up in the bootstrapper as tokenized, and we can build the links in the views.

// for instance the route is '/subscribe/@channel' with PARAMS.channel = 'fatfree' echo $f3->build('@channel'); // displays 'fatfree' echo $f3->build('/get-it/now/@channel'); // displays '/get-it/now/fatfree' echo $f3->build('/subscribe/@channel'); // displays '/subscribe/fatfree'

ChrisFrench commented 10 years ago

probably not doing this