Introduced
Do this open source system, has not done the development of documentation, a bit sorry everyone, today I put the technical specifications write.
Directory structure
Access mode
Http://localhost/index.php?r= Module Name _ Controller name _ method or http://localhost/index.php?module= module name &c/p>
The default value is: module Name: Default, controller name: Page, Method name: Index
Naming conventions
1) class files are named with the. class.php suffix, using the Hump method, and capitalized in the first letter.
2) class name to reflect the file path
3) The core file to be placed under the Lib/core/directory, at this time you do not need to require the inside of the file, direct use can be.
4) How to name the function using lowercase letters and underscores
5) The method is named using the Hump method such as Validclientip, and the private method uses the underscore ' _ ', such as _insertip ().
6) constants are named with uppercase letters and underscores, such as Db_host.
7) The naming of internal variables is not mandatory and can be named according to personal preference. But the individual suggested method parameter variables we use the Hump method, the internal parameters are named with lowercase letters and underscores.
Such as:
- Public Function validacount ($userName) {
- $user _name$userName;
8) The template file is suffixed with. Tpl.
9) The data tables and fields are named with lowercase and underlined methods. Fields such as Hh_ip create_date
Development Requirements
1) MySQL is best to operate with PDO because of its high security and performance.
2) Each database read operation expects to use explain to verify the hit index.
Open log
View Logs
To see if the index is hit
3) for inner joins, it is recommended that you use a maximum of 2 tables. More than 2, we recommend using multiple short SELECT statements.
4) Try to write the comments in English, one is to cultivate the English ability of everyone, the second is to improve the naming ability of everyone.
Summarize
Welcome all to come together to develop, the development of this project in addition to the creation of good products, mainly for technical exchanges, look at everyone's good technology. If you have a better specification or method, you may wish to inform one or two.
QQ Group: 152448006
Address:
Original link: http://www.cnblogs.com/baochuan/archive/2012/09/09/2677214.html
"Editor's recommendation"
- PHP "Personal Management system" I want you to develop together.
- The perfect login module of PHP personal Management system
- A French programmer living in China talking about Python and PHP
- What skills will you need to become a programmer?
- What kind of change does programming give us?
The above introduces the PHP open source software "personal Management system"-technical specifications, including open source software, management system aspects of the content, I hope that the PHP tutorial interested in a friend helpful.