KYPHP, also known as Keyi PHP, is a PHP framework that strictly adheres to the concepts of OOP and MVC. By converting PHP into controls, such as the enhancement of the datalist control, it is possible to realize various table lists and form lists. You can control whether there are page numbers and whether there is a title bar. In this way, you can richly define the list form of data, and one can almost Complete the list display of a website. The concept of Keyi PHP framework is that PHP is completely control-oriented and is truly object-oriented, convenient and practical, and can achieve the simplest use of PHP to efficiently complete your project.
The updated features of KYPHP v1.2.0 are as follows:
1. Added cache class $this->set(key, value, time); $this->get(key); $this->delete(key); also supports memcache
2. Added M layer, C and M layers directly call the cache
3. Optimized the program structure and no longer generate unnecessary files.
4. Add relevant parameters, please see the description for details
5. Fixed the template layer call
6. Static URL mode correction, static mode 4 can generate static URLs for the first time, and then directly read them without generating them. See .ht file
7. Add the load method to facilitate calling other types of data $this->load(mname); the data is $this->model_mname->method(); the default is $this->model->method();
The directory is as follows:
-M
-C
-V
-INC
-TEMP
cache class
CACHE_ON =>true,
memcache_on =>true,
memcache_host => localhost,
memcache_port => 11211,
Directory class
DEFAULT_HTML_PATH => html, //Specify the path to generate HTML files, empty means html
DEFAULT_M_PATH => m, //Specify the path to generate the M file
DEFAULT_LIB_PATH => c, //Specify the path to generate LIB file, empty means lib
DEFAULT_TPL_PATH => v, //Specify the path to generate TPL file, empty means tpl
DEFAULT_CMD_PATH => cmd, //Specify the path to generate cmd file, empty means cmd
CACHE_ON => true, //Page caching is on
Expand