Cakephp: How would I route all missing controller/action calls to a single, general error page?

前端 未结 4 1938
夕颜
夕颜 2020-12-16 22:02

I\'ve got a cakephp app that I\'m trying to get to serve up the Pages::404 function (and corresponding view) whenever Cake encounters any error (missing control

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 22:18

    Please add a class PostController.php not post_controller.php in the app/controller folder. It just mean that You have to create as like its class name.

提交回复
热议问题