SiteController.php 467 B

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