SiteController.php 449 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace backend\controllers;
  3. use yii\web\Controller;
  4. class SiteController extends Controller
  5. {
  6. /**
  7. * @inheritdoc
  8. */
  9. public function actions()
  10. {
  11. return [
  12. 'error' => [
  13. 'class' => 'yii\web\ErrorAction',
  14. ],
  15. ];
  16. }
  17. /**
  18. * 首页
  19. * @return string
  20. */
  21. public function actionIndex()
  22. {
  23. return $this->renderPartial('default');
  24. }
  25. }