This is a skeleton for Object Oriented PHP(MVC)
clone this repository then read the README.md
file. Then create something awasome.
PDO \PDO
PDO::FETCH_ASSOC \PDO::FETCH_ASSOC
DateTime \DateTime
DateTimeZone \DateTimeZone
config/
---config.php // configuration of database connection and other
controllers/ //recieve req from user
---ProductController // perform operation & get data from model
models/ // get,set data into database
---DB.php //databse connection file
---Products // perform database operation
public/ // where view stored
---index.php //default view
whenever you use a controller
include these two files:
require_once __DIR__.'/../config/config.php';
require_once __DIR__.'/../autoload.php';