Here is a quick explanation of what tis small MVC app does and how to start using it.
The main folder is divided into two folders - includes and static Besides that you find .htaccess, index.php, and Routes.php in the main folder.
Let's break it down;
-
index.php Please do not change anything there. User always lands on index.php no matter what they type as the URL. From that index.php loads all the classes, included routing. And that can handle the user's request.
-
Routes.php That takes the user's request and points to the correct controller. You have to make a route whenever you creating a new page.
-
includes holds classes, Controllers, and views. I hope it's kinda self explanatory, Most of the time, you don't touch classes. Whenever you want to mke a new page, create a controller and a view with the same name. Controller needs to extend the Controller class. And all the logic is included there, for example crud operations, sessions, etc. Then, in the view you just write the body part. Header and footer is always included.
-
static holds css, and js files. (All the other are going to be moved lol) So here you have to include your css (please use SCSS), and js.
Questions?
and remember to use /TODO: xxxx for questions, tasks, etc.