Interface Requirements:
- Output JSON
- Single Entry
- Security http://segmentfault.com/q/1010000000143852 based on token verification? Session
- Cache
- Session Cookie
- Database
- Configuration
- Log
- Public Folder
My framework:
index.php: Define the time zone, define the runtime environment, define the framework directory path, introduce the framework file (except this file, all PHP files need to add head judgment, not directly accessible)
Framework file jdhu.php: Introduce framework function file, load configuration class, route class, output class, introduce base class controller file, (can introduce inherit controller file), introduce application controller file, initialize
Base class controller: Increases the property members of all loaded objects, loads the load class, loads the database classes, loads the model
Unresolved Framework Issues:
1. error handling, exception class to be added (test validation required)
2. log fwrite function parentheses
3. database class-driven, connecting multiple databases
4. Load Class (incoming array, can load multiple class libraries): Load class Library (tested basic class, need to test framework class, extension Class), model
5. Check and delete (package too much, no time to carefully study how to construct SQL statements)
6. Caching
7.session Cookies
8. Transaction (encapsulation too much, no time to carefully study the inside how to construct SQL statements)
PHP Interface Development--replication of reduced codeigniter wheels