PHP Interface Development--replication of reduced codeigniter wheels

Source: Internet
Author: User
Tags codeigniter
Interface Requirements:
  1. Output JSON
  2. Single Entry
  3. Security http://segmentfault.com/q/1010000000143852 based on token verification? Session
  4. Cache
  5. Session Cookie
  6. Database
  7. Configuration
  8. Log
  9. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.