Folder Structure
Okay, I’ll look past the Action/Modules/Template garbage (why didn’t they just leave it Controller/Model/View). But what is the deal with all these folders? Someone please tell me why I have to traverse through this to get to the action.
projectname/apps/appname/modules/modulename/actions/
Things are kinda similar to Rails, but… things are just enough to be a little bit annoying at the beginning.
http://yoursite.com/asdf_dev.php/action/module
What a strange routing scheme. It’s true, though, that the _dev.php makes the application run in the development environment (which is really well done), but a .php file before the folders… It just looks so weird.
Okay, that’s all for now. I’m sure I’ll have more as I dive deeper into one of the best and most popular PHP framework. I definitely need to buff up my PHP skills in the coming days to properly be ready for the code maintenance I’ll be doing at work.
You should read the full Routing chapter of the official Symfony book (http://www.symfony-project.com/book/trunk/09-Links-and-the-Routing-System).
You can easily customize all the URL patterns, and the “.php” file name it’s optional.