Skip to content

Abdurrahmanhafizh/Tugas2-MVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Praktikum SI-MVC Pemrograman Berbasis Web Lanjutan 2021/2022

Buat Folder _db serta file didalamnya

  • database.sql

Buat Folder app serta empat folder didalamnya

  • controllers
  • core
  • models
  • views

Buat Folder inc serta file didalamnya

  • config.php

Buat Folder layouts serta folder dan file didalamnya

  • assets - (1) css; (2) images
  • dashboard.php
  • home.php

Buat File index.php

Inisialisasi Composer

Set PSR-4

Install filp/whoops untuk memudahkan informasi error

composer require filp/woops

Buat File .htaccess

Bangun teknik MVC mulai dari

  • app/core/Bootstrap.php
  • app/core/Controller.php
  • app/core/Model.php
  • app/core/Error.php

Setting Model untuk terhubung dengan Database

app/models/Namaclass.php

Setting Controller

app/controllers/Namaclass.php

Setting View

app/view/Namafolder/Namafile.php

Testing

http://localhost/si-mvc/
http://localhost/si-mvc/home/index
http://localhost/si-mvc/home/show
http://localhost/si-mvc/home/detail/1
http://localhost/si-mvc/dashboard

About

Muhammad Abdurrahman Hafizh Tugas 2 MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published