Example #1
0
 public function createUrl($manager,$route,$params=array(),$ampersand)
 {
     if ($route==='course/index') {
         if (isset($params['id'])) {
             $alias = Course::model()->findByPk($params['id'])->alias;
             $params['id'] = $alias;
             return $alias;
         }
         return parent::createUrl($manager,$route, $params, $ampersand);
     }
     return false;  // не применяем правило
 }
Example #2
0
 public function createUrl($manager, $route, $params, $ampersand)
 {
     return parent::createUrl($manager, $route, $params, $ampersand);
     // не применяем данное правило
 }