Multilanguage web site controlling by get request and database allowed languages

Comparing #7 with #8

Revision #8 was created by Igor Ivanovic Igor Ivanovic on Jul 12, 2011, 12:41:16 PM.

extra figure

Content

[...]
/*
* rewriten behavior
*/
public function createUrl($route, $params = array(), $ampersand = '&') {
        //because if you wont to define language manually 
 
        if(empty($params['lang'])){
 
$params['lang'] = Controller::processUrl();         }
 
return parent::createUrl($route, $params, $ampersand);
}


}
```
[...]