Basic Folder Structure

app Non-published directories
 ┗ class Directory containing class files
 ┗ config ・idiorm.php: File for using idiorm (ORM schema DB)
・db.php: Database connection file
・common.php: File for each function
・const.php: File for each constants
 ┗ controller loginController.php: Directory containing the controller
 ┗ view login.php: Directory containing View
public Directory to be published
 ┗ CSS All css files
 ┗ js All js files
 ┗ image All image files
.htaccess Access control: direct all accesses to index.php
index.php Access control: reproduce each controller view

Order of operation

① .htaccess
② index.php
③ Controller
④ view

Prepared by project

・ Copy existing project files and reproduce with minimal configuration
・ Set database information in db.php to match the new environment
・ Set projectURL in const.php