首页
开发手册
应用中心
工具
用户中心
FoundPHP Core PHP Library
English
中文简体
English
上一篇
下一篇
### FoundPHP Core PHP Library FoundPHP is an extremely mini core library. The basic core is less than 200KB. In order to let users have a better experience and development foundation, some demo examples are provided so that users can start development. #### PHP Core Library | Path | | | Description | | ------------ | ------------ | ------------ | ---------- - | | plugin | | | | | | class | | **system Class Library** | | | | database | DBO database | | | | edit | rich Text Editor | | | | file | file upload library | | | | foundphp | FoundPHP core | | | | image | graphics Library | | | | template | ease Template Template Engine | | | | translate | translation | | | | | | | | function | | **function library** | | | | admin.php | administrator background function library | | | | category.php | frame classification function library | | | | globals.php | framework global function library | | | | power.php | framework permission function library| #### 1. Class Library The FoundPHP class library can use the official naming and categorization method. You can obtain the required library files yourself in the framework backend, or you can create your own class library folder under plugin/class, and put your own class library files in the folder. Just call it in use. FoundPHP provides the global function `load()` to call the class library. You can declare the class library without quoting files and complete all operations at one time. ``` //traditional call library include 'plugin/class/database/dbo.php'; $db = new FoundPHP_dbo($config['db']); //call database query //FoundPHP transfer $db = load('class/database/dbo','FoundPHP_dbo',$config['db']); //call database query ``` ------------ #### 2. Function Library FoundPHP is a fully automatic modular development framework. When we create a shop module under the model, the framework will automatically load the `plugin/function/shop.php` corresponding function library when accessing the shop operation. This function library is only for the model For shop functions, other projects need to reference this library separately. ------------