City-of-Bloomington / blossom

A skeleton for PHP web applications
GNU Affero General Public License v3.0
3 stars 0 forks source link

Generalize 404 responses #14

Open inghamn opened 8 years ago

inghamn commented 8 years ago

One thing we do over and over again in the controllers is to try and load an object, and do a 404 response, if we cannot find whatever the user was asking for.

This code goes into nearly all controller action functions. We should probably add some sort of handle404() function to the base Controller class.