YII地址切换 以/开头表示跳出当前控制器 例如 return $this->render('/code/login'// 跳出当前控制器,进入Code下login视图 ,['model' => $model,] ); 而以//开头表示跳出当前应用模块