WebController.php 538 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace yiiunit\debug\router\controllers;
  3. use yii\web\Controller;
  4. class WebController extends Controller
  5. {
  6. public function actions()
  7. {
  8. return [
  9. 'error' => [
  10. 'class' => 'yii\web\ErrorAction',
  11. ],
  12. 'errorStraight' => 'yii\web\ErrorAction',
  13. ];
  14. }
  15. public function actionFirst()
  16. {
  17. return true;
  18. }
  19. public function actionSecond()
  20. {
  21. return true;
  22. }
  23. public function someMethod()
  24. {
  25. return true;
  26. }
  27. }