示例#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;  // не применяем правило
 }
示例#2
0
 public function createUrl($manager, $route, $params, $ampersand)
 {
     return parent::createUrl($manager, $route, $params, $ampersand);
     // не применяем данное правило
 }