Skip to content

sobe-an/Remote-Tailors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Remote-Tailors

This application is intended to meet the need of the current virtual approach of doing things that has risen as a result of the COVID-19 Pandemic. It is to serve as a meeting point for tailors and customers.

This application models the work of Brad Traversy in his tutorial of "Object-Oriented PHP & MVC" which introduce the concept of Model-View-Controller Software Architectural Pattern from scratch.

MVC, What's it about?

MVC stands for Model, View, and Controller. MVC is a software architecture pattern that guides to organize how the components of an application interacts with one another.

  • Model is the component that establishes the logic behind the application through its interactions with the database by updating, retrieving, setting, or deleting information.
  • View is the interface the user sees and interacts with.
  • Controller controls the communication between the model(database), and the view(user's interface).

Directory Structure and Definition

The following describes our MVC framework and how it interacts to deliver the expected result.

The application contains 2 directories; the Private and Public. The Private contains all the application components; the MVC framework that runs the entire application. The Public contains the frontend elements; Stylesheets, images, and JavaScripts files that enhances User interface and experience.

The application is router by 3 .htaccess files, the 1st one is in the project directory. This routes the root url of the application towards the public directory. The 2nd one is in the Public directory. This directs the whole webpage through index.php. The 3rd one is in the Private directory. This restricts access to the public.

Project Folder

  • Private
    • config/
    • controllers/
    • libs/
    • data/
    • models/
    • modules/
    • views/
  • Public
    • assets/

To use this MVC Framework

  • Change define('URL_ROOT', '') in the config/config.php file variables
  • Change the RewriteBase path in the .htaccess file in the Public directory to your project root.
  • Create a database and update the Database information in the config/config.php file
  • Using data/db_setup.php, run the file or copy the query statement to use in your database application to create required tables
  • Using data/db_records.php, run the file or copy the query statement to use in your database application to create required tables
  • To access on a browser; URL Root + Pages . Ex. http://localhost/Remote-Tailors/Pages.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •