Hi,
I have UrlManager class in my components folder:
<?php
class UrlManager extends CUrlManager
{
public function createUrl($route,$params=array(),$ampersand='&')
{
if (!isset($params['prm'])) {
$params['prm']='loading';
}
return parent::createUrl($route, $params, $ampersand);
}
}
?>
this will give me urls like these:
etc…
what if I wanna get urls like these:
-
domain.com/loading/site/index
-
domain.com/loading/site/contact
etc…
it is like Yii::app()->language; but not exactly!