I think this shouldn't be in app.php, because it just sets up some controllers. app/classes/lib.php would be better, since it already contains a random assortment of functions.