Summary of submission of phalcon daily report to the platform

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

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.