Web-Get a PHP project where do I start analyzing code?

Source: Internet
Author: User
Keywords php db-mysql php Framework Web
An open-source CMS system, the data table about 30, the front-end Function modules add up to dozens of, the manual is not complete, how to quickly see it?

Reply content:

An open-source CMS system, the data table about 30, the front-end Function modules add up to dozens of, the manual is not complete, how to quickly see it?

From the entrance file, it's very simple.

I've just had a similar situation recently.
The first step is not to look at the code, deployment, go in to see what the system is the page, which features.
Usually using the PHP framework of self-development, CMS code is definitely not used to see.
I suggest that you look at the module and URL of the page, and use the IDE's Quick search and location to find something similar to controller and action.
Still depends on you to study the purpose of CMS code, if it is to understand should be still not difficult, if it is to modify or two times the development is more painful.

debugging debugging, this code looks very tired

Since the number of modules, it is a module of a module to look at each.

index.php

index.php
According to a link to see, such as the home address, the process to go one side, so that the approximate code structure, and then see all the functions, and then try to change the better.

Look at the MVC structure of a single view

1. Organize the database to clarify the relationship between database tables
2. According to the business, sub-module understanding

According to the URL can be a step-by-step search

Ingress +MVC Mode

  • 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.