Mô tả

In this course we will go step by step to build a complete custom MVC (Model View Controller) framework Called TraversyMVC using object oriented PHP. We will build something similar to Codeigniter but much much lighter. This framework is completely open source and you are free to change the name, add stuff, etc and use it as your own. This framework will include...


  1. A core library class to load controllers & methods from the URL (Also using .htaccess)

  2. A base controller class to load models and views

  3. A custom database library using PDO for all models to interact with the database using prepared statements

Not only will we create the framework but we will build an application on top of it called SharePosts which will be somewhat of a social network to share posts. This application will include..


  1. Full user authentication

  2. Access control for posts

  3. Server side form validation

  4. Bootstrap 4 UI

  5. Posts CRUD

  6. Helper functions (flash messaging & redirects)

We will also be deploying the application to the Internet


This is not a beginner PHP course. You should already understand things like variables, arrays, loops, functions and all of the basics of the PHP language. It is ok if you do not understand OOP fully. Before we start the framework project, we will have a crash course on object-oriented programming with PHP, where you will learn about classes, methods, properties and more.


To learn the basics, please check out the PHP Front To Back series on YouTube by Traversy Media

Bạn sẽ học được gì

Build a custom MVC Framework from absolute scratch

Build an application using your custom framework

Create a custom PDO class to handle database interactions

Complete user authentication using OOP & PDO

Deploy your custom PHP application

Yêu cầu

  • You should know basic PHP & programming concepts

Nội dung khoá học

7 sections

Course Intro & Setup

3 lectures
Welcome To The Course
06:12
Project Files & Questions
01:56
XAMPP Environment Setup
08:31

Intro To OOP PHP

7 lectures
About This Section
01:09
What Is OOP?
05:47
Classes, Properties & Methods
09:45
The Constructor & Destructor
10:39
Access Modifiers, Getters & Setters
09:18
Class Inheritance
06:50
Static Methods & Properties
05:59

The Framework [Part 1] - The Core

7 lectures
What Is MVC?
04:30
Workflow Explanation
07:55
Creating The Folder Structure
08:35
Direct Everything Through index.php
07:06
Bootstrap FIle & Core Class
10:43
Loading The Controller From The URL
12:00
Mapping Methods & Parameters
07:56

The Framework [Part 2] - MVC Workflow

8 lectures
Base Controller Class
07:13
Loading Views
06:11
Config File & Uploader
07:45
Header & Footer Includes
06:30
Aside - PDO Crash Course
17:59
The Database Class - Part 1
12:51
The Database Class - Part 2
16:02
Clean Up
05:24

The App [1] - Setup & User Authentication

10 lectures
Initial App & Database Setup
05:38
Pages, Bootstrap & Navbar
12:52
Creating The Users Controller
08:51
Register & Login Form Views
11:37
Form Validation
13:49
User Model & Email Check
07:59
User Registration
11:16
Custom Flash Messaging
15:30
User Login
09:26
User Session Data & Logout
08:33

The App [2] - Posts Functionality

8 lectures
Posts Controller
06:52
Posts Access Control
04:58
Post Model & Display
12:40
Add Post Form
08:39
Inserting Posts
13:06
Post Show Details Page
13:37
Editing Posts
09:38
Deleting Posts
07:02

App Deployment

1 lectures
Deploying Our App
12:51

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.