😘Dự án xây dựng MVC PHP (ok)

1. https://github.com/phendan/custom-cmsarrow-up-right 2. https://github.com/rizkhal/php-crud-mvcarrow-up-right 3. https://github.com/khalidhagane/school_managerarrow-up-right (Dự án này chỉnh sửa lại code để chạy trên lva1.com lva1-school_manager.rar)

file-archive
132KB
archive
file-archive
13MB
file-archive
13MB

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

file-archive
127KB

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

file-archive
129KB

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

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

file-download
268KB

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

file-download
271KB

Last updated