Original Super Simple php Framework
Main ideas: Now php is widely used, and we are discussing oop and mvc. I don't know much about these things, and many places are not comprehensive. I hope you can correct them. The framework is also guided by mvc and combined with some static cache methods using oop. This section describes several main files: Main. php is a core program that contains a simple url routing and a database query data cache function. Instantiation of model. php model View. php: a simple template engine Control. php controller navigation Function description: 1. Currently, only mysql databases are supported. 2. the controller name must have certain rules. for example, if the file name is xx, the class name must be xxControl. 3. the model name must have certain rules. for example, if the file name is xx, the class name must be xxModel. 4. the inheritance cannot be automatically recognized. If an inheritance operation exists, you need to manually include it into the relevant files. 5. in linux, \ cache \ template \ view \ must have the read/write permission. |