Routelandia / routelandia-server

The server backend to power the Routelandia project.
Apache License 2.0
0 stars 1 forks source link

Change php files in public to be xyzController #19

Closed pgicking closed 9 years ago

pgicking commented 9 years ago

I am stupid and keep forgetting what exactly is a controller and whats a model with MVC. Change the file names so that its more explicit. And make sure it doesnt break everything :)

jessewagner commented 9 years ago

Attempted to rename the php files in the public folder (Highways, Stations, Detectors) but it changed the URL required to access the data, unless we can figure out a way to make the routing work with the original names and have them point to the correct files this task is not possible.

TL;DR - it broke everything :(

joshproehl commented 9 years ago

Doesn't look like we're going to be able to do this one. Restler appears to need the class name and the file name to match the URL that is going to be used...

So we'll just have to live with remembering that the plural version (Stations) is the controller for the singular entity. (Station)

FYI @pgicking @severity, I'm going to go ahead and close this.