A simple PHP framework implementation method. Non-original, set the class Apode + DZ Template + package PDO, so you don't have to look at the application process. it is the same as the general framework syntax. let's take a look at the implementation process, I mainly want to learn how to implement a non-original one. I have collected the class Apode + DZ Template + encapsulated PDO, so I don't need to read the application process. it is the same as the general framework syntax, let's take a look at the implementation process. we mainly learn how to implement a framework. it takes only half an hour to learn other frameworks when you learn to expand or develop the framework.
Several cores
App. php
_ Autoload (automatic loading class)
Base. class. php
Abstract class Base {} // data abstraction
Action. class. php
Abstract class Action extends Base {} // inheritance class
Action (core loading class)
Controller. class. php
GetController (default access Controller and Action)
Model. class. php
Model (core Model class)
When writing conditions in the controller, you can use $ sqladd [title] = 'test'; to upload an array to the model.
If you want to extend it, you only need to insert related classes in action. class. php.
Mongodz Template + package PDO, so you don't need to look at the application process. it is the same as the general framework syntax. let's take a look at the implementation process and learn how to implement it...