: This article mainly introduces the daily report submission platform summary of phalcon. For more information about PHP tutorials, see. Conclusion: the basic phalcon framework principle and PHP language are mastered by submitting the development report to the system. I also learned some common linux commands and gained a lot.
The following is a summary of the problems encountered in the project:
1. three methods for transmitting foreground data to the background:
(1) form submission form, $ this-> request-> getPost ('name ');
(2) hyperlink, $ _ GET ["name"];
(3) hyperlink. obtain the parameter parameters from the background function name ().
2. two data regionalization methods:
(1) session $ this-> session-> set ('auth', array (
'Number' => $ info-> number,
'Name' => $ info-> name,
'Permission' => $ info-> permission ));
(2) persistent persistence, $ this-> persistent-> acl = $ acl
3. plug-in plugins. access control ACLs are used in this project. The purpose is to enter the securityplugin before the route jump to determine whether the current role has the permission to enter this url. Set di in service. A framework deficiency is found in the coding process. foreach ($ guestResources as $ resource => $ actions ){
$ Acl-> allow ('guest ', $ resource,' * '); here * refers to all the actions under the controller corresponding to the resource, instead of the previously defined action (which is inconsistent with the document description), its allow or deny cannot exceed a certain number.
4. send an email using the PHPMailer Library. you need to add the class. phpmailer. php and class. smtp. php reference paths. For details, see "PHP language essence" OREILLY 88 pages
5. You can run the command phalcon project ABC and phalcon model ABC to create a project and model layer, which is more convenient and practical.
The above is a summary of the daily report submission platform provided by phalcon, including some content. I hope to help anyone who is interested in the PHP Tutorial.