Module Development Summary
1 Use micro-power template to generate template schema, perfect configuration files (manifest.xml, database creation and uninstallation, information, etc.). After 2, we will first go into our defined module (module.php's Fieldsformdisplay () attached to the rule form) and display a series of forms and rules of the presentation in the module. (Configures and displays the relevant features of this module when handling public platform messages (such as rule definitions, message processing, etc.). 3 processor.php This file is defined by the micro-module handler, that is, when the client sends a message, the processing is performed here, The approximate calling procedure is to api.php->engine.php->processor.php get the response content and return it to the interface. 4 site.php micro-station function processing, when the user visits the micro-station, call this handler to handle access. It mainly defines two types of embedding points: Dowebxxx and domobilexxx, which are general background management for Web Access (accessed in site.php?act=module&name={$module}&do=xxx). The latter is the embedded point of the mobile end and is generally used as an access display (Access mode-mobile.php?act=module&name={$module}&do=xxx).With all that said, my general understanding of the process is:1 module to handle the management of rules, that is, define the rules (additions, deletions, validations, etc.) .2 Then when the user sends a message over the processor here to process the message and return the message response,3 After the user taps the response file in the previous step, the appropriate content, such as an article, is opened. The opening and other operations here are handled in site.php. 4 These core PHP files are within the engine.php unified processing calls, respectively, responsible for handling the respective functions, seemingly no specific interaction. Beginner this may be a lot of mistakes in the place to let everyone learn together with the wrong place welcome to explore.
Module Development Summary