Not original, I have assembled the Apode class + DZ template + encapsulated PDO. You don’t need to look at the application process. It is the same as the ordinary framework syntax. Let’s take a look at the implementation process. It mainly learns how to implement a framework, etc. If you learn to extend or develop on it, it will only take half an hour to learn other frameworks
Several cores
app.php
__autoload (automatic loading class)
base.class.php
Abstract class Base {}//Data abstraction
action.class.php
Abstract class Action extends Base {}//Inherited class
Action (core loading class)
controller.class.php
getController (Controller and Action accessed by default)
model.class.php
Model (core Model class)
When writing conditions in the controller, you can use $sqladd[title] = 'test'; to pass the array to the model
If you want to extend it, you only need to insert the relevant classes in action.class.php