Legacy urls
Permalink
Hi,
I have just a little question :
Why using legacy urls (ENABLE_LEGACY_CONTROLLER_URLS) ?
Thanks.
I have just a little question :
Why using legacy urls (ENABLE_LEGACY_CONTROLLER_URLS) ?
Thanks.
Thanks.
But why adding '-/' in url ?
But why adding '-/' in url ?
after '-/' is parameter.
Before the /-/ comes the path to the page. Afterwards comes the method being run by the page's controller, and after that comes the list of parameters. Since paths to pages can be any length the /-/ helps tell you where the page stops and the method begins.
However, we have a smart method for getting around that now, so you don't have to have urls that are polluted with the /-/ (which some find ugly). It comes with a very slight performance hit and occasionally some wonky behavior, so we made it a switch that you can turn off if your site (which would have to be very custom to be affected by this) didn't work with our new request system.
However, we have a smart method for getting around that now, so you don't have to have urls that are polluted with the /-/ (which some find ugly). It comes with a very slight performance hit and occasionally some wonky behavior, so we made it a switch that you can turn off if your site (which would have to be very custom to be affected by this) didn't work with our new request system.
\concrete\libraries\request.php line 126