😘Dự án xây dựng MVC PHP (ok)
1. https://github.com/phendan/custom-cms 2. https://github.com/rizkhal/php-crud-mvc 3. https://github.com/khalidhagane/school_manager (Dự án này chỉnh sửa lại code để chạy trên lva1.com lva1-school_manager.rar)
https://github.com/AbdAllAH-ElRhmany/future_link/tree/main (Đã có chỉnh sửa sang tiếng anh)
Project 1 (custom-cms)
1. Tạo controller HomeController, LoginController, DashboardController
app\Controllers\DashboardController.php
app\Controllers\HomeController.php
app\Controllers\LoginController.php
app\Helpers\Str.php
app\Models\Database.php
app\Models\User.php
app\views\partials\header.php
app\views\partials\footer.php
app\views\dashboard.php
app\views\home.php
app\views\login.php
app\App.php
app\BaseController.php
app\Request.php
app\Router.php
app\View.php
public\.htaccess
public\index.php
composer.json
2. Chi tiết bài viết

app\Router.php
app\Models\Post.php
app\Controllers\PostController.php
3. Show bài viết của 1 người đăng nhập ra dashboad

app\Models\User.php
app\Models\Post.php
app\Views\dashboard.php
4. Show bài viết ra form chỉnh sửa

app\Controllers\PostController.php
app\Models\Post.php
5. Cập nhật bài viết và chuyển sang bài viết vừa cập nhật


app\Controllers\PostController.php
app\Router.php
app\Models\Post.php
app\Helpers\Str.php
6. Create new Post


app\Controllers\PostController.php
app\views\posts\create.php
app\Models\Post.php
7. Upload image in post



app\Controllers\PostController.php
app\views\posts\create.php
app\Models\Post.php
app\Models\Post.php
app\Config.php

app\Models\FileStorage.php
app\Helpers\Str.php
Project 2 (php-crud-mvc)
1. Load controller, method, params

public\index.php
app\init.php
app\config\config.php
app\core\App.php
app\core\Controller.php
app\controllers\homeController.php
2. Show data mahasiswa to index.php

app\controllers\mahasiswaController.php
app\core\App.php
app\core\Controller.php
app\core\Database.php
app\models\Mahasiswa.php
app\views\mahasiswa\index.php
app\views\templates\header.php
app\views\templates\footer.php
app\init.php
Last updated
Was this helpful?