The point of this repository is to create a simple MVC implementation of Silex
- Checkout this Repo
- Install composer (https://getcomposer.org)
- Run the following command in root of repo composer.phar install
- Ensure web server is pointing at the /web folder, and not the / folder
- Enjoy!
/app/ - Contains all the configuration files for Databases, Twig, Routes, etc.
/src/ - Contains all user generated bundles
/vendor/ - Contains all composer installed bundles
/src/Acme/ - Contains test controllers and Views directory
/web/ - Contains Silex runner and any public facing files (css,js)
- Make sure under /app/app.php the MAIN_BUNDLE constant is set to your main bundle in the src folder. I'll try and fix this in future releases, this is only for Views
- Make Models Directory
- Make Views directory