The DuoLamPHP framework is named according to the pinyin form of the Doraemon anime. DP is a simple, efficient, and easy-to-use PHP framework that follows the Apache open source protocol. You can quickly build a project. As an ultra-lightweight PHP framework, it perfectly supports MVC and is completely object-oriented. As a PHPer, what else do you need?
Our slogan is: Awesome ultra-lightweight PHP framework. Reason: Everyone who has used it knows!
DuoLamPHP framework function overview:
single entry mode
The database uses PDO (make sure PDO is turned on, otherwise the database cannot be used)
Core compilation function, all cores become one file, reducing the number of loading times and making it feel like flying
Simple and powerful data operations, greatly reducing CRUD operations
Efficient caching system
Simple and fast data model object ORM
Original template syntax
Implement singleton mode through DuoLam::app(class name) interface to reduce repeated instantiation
Customize the path name and turn the long path into several strings
Powerful import file loading function, you can specify the path or directory at will
Automatically load files on demand, greatly improving running speed
The routing function is more powerful than URL rewriting.
Free and powerful expansion capabilities allow you to not be limited to the core of the framework and add new features anytime and anywhere!
Comes with class library:
File upload class
Image manipulation class (collected in thinkPHP)
Pagination class
Permission control system (user-based, simple and powerful)
Cookie processing class
Session processing class
Unlimited classification processing classes
Third-party libraries:
Helper class (a collection of commonly used functions)
Converting Chinese characters to Pinyin (using CMS, it is very convenient to generate column names)
The official version of DuoLamPHP 1.0 adds the following functions based on the beta version:
1. Support traditional url method: index.php?c=index&a=ex, the variable name can be customized in the configuration file
2. Add Chinese characters to pinyin conversion, which can be used as cms columns and automatically generate column names.
3. Add a helper class, which is a collection of commonly used functions. Any commonly used functions can be added to this class and called in a static manner. This class will be loaded automatically.
4. Add cookie processing class. Cookie information is easily processed and can also be stored on the client in an encrypted manner.
5. Add session processing class.
6. Added permission authentication class, built-in login, logout, and detection of login. Authentication is divided into users, roles, and behaviors. Control permissions from three aspects, powerful and simple. (Based on user table, need to build user table by yourself)
7. Add unlimited classification processing classes.
Bugs fixed in the official version of DuoLamPHP 1.0:
1. Controller naming bug. It should be XxxxAction.php not ActionXxx.php. (Sorry for this BUG.)
2. Shared controller BUG. When using the shared controller, URL parsing error occurs and the file cannot be loaded.
3. There is a bug in automatically loading files. DuoLam::import() is used to load files. Because break is used in the loop, the bug is only executed once.
4. A bug in the routing identification shared controller caused routing problems due to parsing errors.
5. The bug cannot be cached. Because the judgment uses === for absolute equality, it cannot be true, causing the cache generation to fail.
6. Fixed the bug that the shared route cannot find the default controller and action.
7. Repair the core code. There is a place where echo is used and the bug is forgotten to be deleted.
8. Change the code sequence and minor changes of the application entry file. . It turns out that the order caused the system variables to not be obtained.
Expand