dynamically generate routes in PHP files. refs #17