DefaultController.php 543 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace wechat\modules\cp\controllers;
  3. use yii\web\Controller;
  4. /**
  5. * Default controller for the `cp` module
  6. */
  7. class DefaultController extends Controller
  8. {
  9. /**
  10. * @inheritdoc
  11. */
  12. public function actions()
  13. {
  14. return [
  15. 'error' => [
  16. 'class' => 'yii\web\ErrorAction',
  17. ],
  18. ];
  19. }
  20. /**
  21. * Renders the index view for the module
  22. * @return string
  23. */
  24. public function actionIndex()
  25. {
  26. return $this->render('index');
  27. }
  28. }