Wednesday, June 11, 2014

404 for all requests undefined in routers

I'm beginner in CakePHP.

I have a set of several routes in my application. These routes defined in routes.php. I want redirect to 404 any incoming request that not defined into the routes.php. I want process these requests on the Router level, not in controller.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: