PHP Open Source Software "personal Management system"--Technical specification

Source: Internet
Author: User
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:

 
  
  
  1. Public Function validacount ($userName) {
  2. $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"

      1. PHP "Personal Management system" I want you to develop together.
      2. The perfect login module of PHP personal Management system
      3. A French programmer living in China talking about Python and PHP
      4. What skills will you need to become a programmer?
      5. 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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.