Thank for your help, i tried it but nop, I think it can’t be the problem, it get pass through urlManager, and show me an empty array. If tha regular expression was wrong it should be stopped in the url manager, isnt it?
Anyway I’ve tried it, and i get the same response, and empty array…
And the url i’m visiting is this: “Myweb.com/es/”, and well i’m trying to get this GET parameter in my beingRequest, to set the language. I’ve got this working fine by POST, but for SEO optimization I need the language in the url.
I thought it was easy, coz i have a lot of urls, and all work fine, but this is before arrive at the controller and i don’t know if i can do this…
Ok, I didn’t know about this, but, it suppose to do this in all my controllers, isn’t it? I’m going to work on this, but I thought to work in the beingRequest was a simple step an more easy…
If you do it in your base Controller class, it will run for all of your controllers. That’s assuming that they all extend the Controller class of course.
Oh yes, after say these "nosense" i said before, i realized what you tried to say me. Sorry.
Now I Know what happend, yii pass through beingRequest before the urlManager, that is why i can’t get no GET parameter. I solved it with getUrl() from ChttpRquest, and it’s works perfectly.