Skip to content

peetyo/forum-diy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey, before you start!

Introduction

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;

  1. 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.

  2. 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.

  3. 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.

  4. 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?

Remember to comment

and remember to use /TODO: xxxx for questions, tasks, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •