Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic problems in the secondary development of Imperial CMS?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you what are the basic issues about the secondary development of Imperial CMS. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Many Imperial CMS users often carry out secondary development of Imperial CMS due to personalized feature requirements and other reasons, and they also encounter many problems. The common problems are summarized as follows:

1. First of all, check the front desk contribution flow chart and its notes:

Http://bbs.phome.net/showthread-34-118212-0.html

The way 2.ECMS handles information is basically a process like this:

① form submission enews=?

The ② information processing script page receives the enews value and selects the reference file according to its value, and the processing function

③ processing functions for processing, and referencing relevant processing functions to process information content and input, update and delete data according to the flow

④ halfway or end according to the situation, use the printerror () function to terminate the function to continue to run down, and print a prompt message to return to the page

3. According to the prompts in 2, insert some features that are not available in the background:

① if the function is outside the processing information function flow, then you can reference the file or insert the processing function in the form processing script page.

Eg: feedback sent to email http://bbs.phome.net/showthread-13-117813-0.html

Note: in fact, sending feedback to the mailbox is not a sufficient example, because if the feedback content is not complete or unsuccessful, there is no equivalent judgment in the referenced feedback sending mailbox file; this program will not be perfect; what may happen is that the feedback content is not entered into the database, but sent to the mailbox. Of course, there is no problem when the customer does not need ECMS background feedback, which is equivalent to the feedback received by the mailbox.

② if the customer requests peer-to-peer information, then add the reference file of "feedback sending mailbox" before the information processing function returns the success message.

③ involves a large number of additional functions. You can consider referencing the file in the form processing page and inserting the functions in the referenced file into the function body that needs to be inserted.

4. Why not write the secondary function directly in the function body, but use the reference file:

① is not easy to manage secondary development files.

Writing code in the ② source code function will make it inconvenient to upgrade in the future.

5. Where do I put my second file?

ECMS does not set up a folder specifically for the second opening. You can set two directories under the e directory and the e/admin directory to place the files you added. For example, my settings are as follows:

E/cmsextends non-background related file directory

E/cmsextends/js JS directory

E/cmsextends/css CSS directory

E/cmsextends/Mail non-backend involves new PHP files related to Mail

Add file directory to e/admin/cmsextends backend

The following is the same as e/cmsextends

6. The second document requirements:

Maintain a good habit of opening documents, which is conducive to code rewriting and program upgrades, including the following:

① added file code content comments

Description of the new file function in ②

③ modify file description

④ other cheat notes

7. Users use documentation and plug-in installation documentation

Installation documentation is basically the second open document content, the use of documents, introduce the use of functions!

Thank you for reading! On the Empire CMS secondary development of the basic issues shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report