Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.06 KB

readme.md

File metadata and controls

53 lines (38 loc) · 1.06 KB

SIMPLE - PHP MVC OOP

Here is very simple sample blog project with PHP OOP using MVC Design Pattern to help for those who is learning PHP and want to know who to how to build project using PHP OOP MVC Design Pattern.

DEMO

All Posts

./public/asset/demo_image/all.png

Edit Post

./public/asset/demo_image/edit.png

Detail Post

./public/asset/demo_image/show.png

Knowleadge

  • Apache setting (.htaccess)
  • MySql

Using PHP functions

  • call_user_func_array
  • extract
  • trim
  • compact
  • explode
  • unset
  • class_exists
  • method_exists
  • array_values

Installation

  • git clone
  • config core/config.php
// Application 
define('APP_URL', 'http://localhost/simple-php-mvc-oop/pubic');

// database
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'simple_php_mvc_oop');
  • composer install
  • import db.sql
  • entry point public/index.php