This is a simple MVC framework for building my blog in PHP. I did this work thanks to Dave Hollingworth's tutorials and the advice of my mentor Gauthier B.
This work is done as part of my PHP web developer training with Openclassroom - project 5.
Attention, this blog is my reflection: I used the knowledge of different courses that I learned and put them into practice. In no way the errors that could be found are the fact of the people cited.
- First, download the framework, either directly or by cloning the repo.
- Run composer update to install the project dependencies.
- Configure your web server to have the public folder as the web root.
- Open config/Config.php.dist and enter your database configuration data.
See below for more details.
If the SHOW_ERRORS
configuration setting is set to true
, full error detail will be shown in the browser if an error or exception occurs. If it's set to false
, a generic message will be shown using the app/view/404.html.twig or app/view/500.html.twig views, depending on the error.
Pretty URLs are enabled using web server rewrite rules. An .htaccess file is included in the public
folder. Equivalent nginx configuration is in the nginx.txt file.