dynamic URIs and be able to
route like this:
/page/anotherpage/blog/blogpost_title
/page/anotherpage/blog/archive/2009-06
and like this also
/someother_section/blog/blogpost_title
/someother_section/blog/archive/2009-06
So as you can see the the URI segments prepending the actual module name are
dynamic and can be anything.
I am trying to set routes in front controller (plugin) so i can generate
them on the fly operating on request URI. But the problem i am facing - is
that i cannot simply prepend that dynamic part to the route like this:
new
Zend_Controller_Router_Route('/page/anotherpage/blog/blogpost_title/:controller/:action/*',
$routeDefaults);
That doesn't seem to work. So the only solution i see for now is modify the
request object to set baseUrl()
So since i do this conditionally (not for all routes) i need your advice:
1. Is it intended usage, is it ok to do it this way?
2. What other parts of framework may be affected by this baseUrl() setting?
Thanks a lot,
Dmitry.
--
View this message in context: http://www.nabble.com/Base-URL---where-is-it-used--tp24372371p24372371.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论