NotFoundController.php 415 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2018/7/12
  6. * Time: 下午3:35
  7. */
  8. namespace app\backend\controllers;
  9. use app\common\components\BaseController;
  10. use app\common\exceptions\NotFoundException;
  11. class NotFoundController extends BaseController
  12. {
  13. /**
  14. * @throws NotFoundException
  15. */
  16. public function index(){
  17. throw new NotFoundException('不存在的页面');
  18. }
  19. }