|
|
|
[
Permlink
| « Hide
]
Matthew Weier O'Phinney - 04/Aug/08 10:24 AM
Postponing to 1.7.0; Martel and DASPRiD are working on a solution, part of which is included in 1.6, but the rest of which will happen for 1.7.0. At that time, we can easily add language-based routes.
I'm only responsible for the config- and hostname-part. Martel is the maintainer of the actual partial path chaining. As he is currently quite busy, I don't think that partial path chaining will make it into 1.7. Even 1.8 isn't really clear.
Assigning to Ben; this is addressed with chained routes in 1.7.0, IIRC.
Can anybody of the participants explain, how to solve the requirements of a default multilanguage route? I can't see an solution using chained routes.
You simply take a standard route ":language", and all your other routes. Then you say for example
$languageRoute = new Zend_Controller_Router_Route(':language', array('language' => 'de'); $blogRoute = new Zend_Controller_Router_Route_Static('blog'); $blogRoute = $languageRoute->chain($blogRoute); $router->addRoute($blogRoute); For more examples, see documentation or ask in #zftalk on chat.freenode.org. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||