andy16

Response to Keyne

Sep 4th, 2012
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. I am having a few problems with it, but I think the first thing to sort out is if it would be possible to use the default routes if no language exists in the URL. I am used to using config files for routes, so I am not so comfortable with this code. Yesterday you asked if the language would always be present in the URL, and now I see that my answer was a poor one. What I meant was that if no language is specified in the URL, a default language will be assumed, but it will not be put into the URL; a default value will just be applied to Zend_Locale in my bootstrap and if it is not overridden anywhere, that language will be used. By going about it this way, the idea is to override the value stored in Zend_Locale in the controller plugin if a language is present in the URL. Right now, if no language is present, it will not give me a correct language value by getting the lang parameter. For instance, accessing zend.local/user will give me 'user' as the language parameter and it will render my front page (default/index/index).
Advertisement
Add Comment
Please, Sign In to add comment