Official website: http://www.zentao.net/
Download: http://www.zentao.net/download
First, what is the zentaophp framework
The zentaophp framework is a lightweight PHP development framework developed by the Zen Road Project management software development team, and its main features are:
1.1 Code Simple
Zentaophp Framework core has only four files, respectively, scheduling class Router.class.php,control class Control.class.php,model class model.class.php and Tool class helper.class.php. The code inside is simple enough. This makes it easy for you to read the code and customize it to suit your actual application.
1.2 Good performance
Zentaophp framework in the implementation process, attaches great importance to performance. Under the premise of ensuring the function, as far as possible to improve program execution efficiency.
1.3 Clear structure
Using the zentaophp framework to develop the application, its directory structure is simple and clear, maintenance is very convenient.
1.4 Development-Friendly
Frame, first is a box that puts you in the inside. So many frameworks have a lot of conventions, what you want, what you want. There are a lot of invisible conventions, such as you want to write in your code a lot of xxxx and other stuff. I think a good framework in the implementation of functional premise, should try to take into account the development of developers before the habit. The zentaophp framework takes a lot of effort in this regard:
neutral naming: when the framework is implemented, there is no naming such as Zentao, which is completely neutral named: Router, control, model, config, Lang.
Configuration object: configuration items can be referenced by object, $config->db->user, more concise than $config[' db ' [' User '].
relative paths include : In applications developed by the zentaophp framework, all paths can be included with relative paths, so that you can clearly know the relationship between the directory structure and the code.
1.5 Public domain Licensing
Public domain authorization is what you can do with it, Zen Road development team has fully donated the copyright of the zentaophp framework to the community. Anyone, any unit can take it to do any thing without any restrictions.
Second, the main functions of the zentaophp framework are as follows:
2.1 Single entry mode
Single entry is now a popular way to develop. The advantage is that there can be a centralized control. Or the framework of a relatively basic thing is also a single entrance bar. Now the zentaophp framework supports both Web and command-line methods for both portal files. For specific examples, you can view the two files in the app directory under demo/www/index.php and Cli/call.
2.2 MVC
Zentaophp supports the development of MVC methods. However, compared with other frameworks, zentaophp does not attempt to develop a new set of template systems, but instead uses PHP as the template language. This is the quickest solution and one of the simplest.
2.3 Support for Get and path_info two ways to call
Support for index.php?m=user&f=info&id=123 This get method is also supported by calls/user/info/id/123.html this way. If you can control your operating environment, you can use the Path_info way, so that the generated URL is more simple, and the search engine is very friendly.
2.4 Built-in database access layer DAO
Zen Channel framework built-in DAO database access layer, on the basis of PDO, provides a complete SQL assembly function, can be very convenient to write SQL query statements, to obtain data. And when we implement DAO, it takes a lot of effort to write the SQL before it is compatible, so you will find it very kind when you use DAO in Zen DAO framework, because it is basically the same as handwritten SQL.
2.5 support for calls across modules
In the zentaophp framework, the control or model of a module can directly invoke the model of another module, so that an application can be modularized, and then the functions of different modules are used to achieve more complex functions.
In addition to the model call, the control of a module can fetch another control method of the module, which is generally used for some common page elements, such as printing a search form, or printing menus and so on. The sharing of code is realized by invoking each other between control.
2.6 Simple URLs without routing configuration
The zentaophp framework provides a concise way to pass parameters. For example, the user module has a read method, requires the ID and name two parameters, the usual Path_ino is user/read/id/1/name/wwccss.html, and zentaophp support user/read/1/ Wwccss.html, which omits the passing of the parameter name. All of this, there is no need to configure any route, directly through the framework of the function can be obtained.
2.7 Flexible data validation mechanism
Zen Road PHP Framework has built-in flexible data validation mechanism, can achieve the correction and inspection of data, the code is extremely compact, concise.
2.8 Configuration and language can be referenced by object mode
The configuration of the zentaophp framework does not use any INI file, nor does it use any yaml files, nor does it use the PHP array, but directly in the form of PHP objects. This configuration file does not need parsing, it can be used directly, and the reference is very convenient. Such a way as $config->db->host, not $config[' db ' [' Host ']. The writing will be very smooth!
2.9 Convenient global variable application
In the zentaophp framework, referring to global variables such as get,post, server, can be done in such a way: $this->get->username, $this->post->username, $this- >server->remote_addr.
2.10 See the API
Under the current open platform trend, there is a very good API mechanism is more important. In ZT, each interface can be an API. The way the API is made is distinguished by the extension of its access. For example, if you are visiting user/read/id/123.html, then the normal page is returned. If you are accessing User/read/id/123.json, then the data returned is in JSON format.
2.11 Built-in multi-lingual support
ZT supports a variety of language features that automatically determine which language to use based on the current user's client's information, which makes it easy for you to develop multiple language applications.
2.12 Powerful extension mechanism
The zentaophp framework implements a powerful extension mechanism. With this expansion mechanism, custom development can be said to be a breeze, no longer worrying about the pain of maintaining multiple branches.
Zen Road project management software