Phalcon to make a daily report submission platform Summary

Source: Internet
Author: User
Tags php language

Summary: Through the Development Day report submission system, mastered the basic Phalcon framework principle and the PHP language. Also learned some of the common Linux commands, harvest quite abundant.
Here is a summary of the issues encountered in the project:
1. There are three ways to use the foreground data for the back table:
(1) Form submission form, $this->request->getpost (' name ');
(2) Hyperlink <a href= "...? Name= "Marry" ", $_get[" name "];
(3) Hyperlink <a href= "Controller/action/parameters", gets the parameter from the background function name () parameters

2. Two methods of data global:

' number ' = $info->number,
' name ' = = $info->name,

(2) persistent persistence, $this->persistent->acl = $acl

3. Plug-in plugins, this project uses the access control ACL, the purpose is to enter the Securityplugin before the route jump, to determine whether the current role roles have permission to enter this URL. This section requires the setting of Di in the service. The coding process found a framework of shortcomings, foreach ($guestResources as $resource + = $actions) {
$acl->allow (' guest ', $resource, ' * '), where * refers to all actions under the controller of the resource, rather than the previously defined action (not conforming to the documentation), And it cannot allow or deny more than a certain amount.
4. Send the message, using the Phpmailer library, you need to add class.phpmailer.php and class.smtp.php reference path. See "PHP Language Essentials" oreilly 88 page for details

5. The establishment of the project and model layer can be done with the instruction Phalcon project ABC and PHALCON model ABC, which is more convenient and practical.

Phalcon to make a daily report submission platform Summary

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.