SiteController.php 483 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace backend\controllers;
  3. use backend\models\Mt4PricesApi;
  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. * 首页
  20. * @return string
  21. */
  22. public function actionIndex()
  23. {
  24. return $this->renderPartial('default');
  25. }
  26. }