urlManager:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
'' => 'index/index',
'info' => 'info/info',
'news' => 'news/news'
],
]
IndexController:
class IndexController extends Controller
{
public function actionIndex() {
return $this->render('index');
}
}
InfoController:
class InfoController extends Controller
{
public function actionInfo() {
return $this->render('info');
}
}
NewsController:
class NewsController extends Controller
{
public function actionNews() {
return $this->render('news');
}
}