Currently the Codeigniter routing configuration and site_url
only makes it possible to decouple the visible URL from the underlying path to controller.
$routing['my/url/'] = "my/controller/path";
However this doesn't help that much when you want to change the visible URL's themselves. If I change 'my/url', then all related site_url
calls need to be replaced.
Is there any extension for CI which enabled support for naming URL patterns as well? So you decouple the visible URL structure as well, so you can use site_url('my_url_pattern_name')
and change the underlying URL without affecting site_url
(unless we change number/name of URL segment parameters of course).
Note: an example of this is Django's URL pattern naming: https://docs.djangoproject.com/en/1.3/topics/http/urls/#naming-url-patterns