Home > Backend Development > PHP Tutorial > Summary of phalcon daily report submission platform, phalcon platform_PHP tutorial

Summary of phalcon daily report submission platform, phalcon platform_PHP tutorial

WBOY
Release: 2016-07-12 09:00:29
Original
961 people have browsed it

Phalcon daily report submission platform summary, phalcon platform

Summary: By developing the daily report submission system, I have mastered the basic phalcon framework principles and PHP language. I also learned about some common Linux commands and gained a lot.
The following is a summary of the problems encountered in the project:
1. Three methods used to transfer front-end data to the back-end:
(1) Form submission form, $this->request->getPost(‘name’);
(2) Hyperlink, $_GET[“name”];
(3) Hyperlink
, get parameters parameters

from the background function name ()

2. Two methods of data globalization:
(1) session $this->session->set(‘auth’,array(
‘number’ => $info->number,
‘name’ => $info->name,
‘permission’=>$info->permission));
(2) persistent persistence, $this->persistent->acl = $acl

3. Plugins. Access control acl is used in this project. The purpose is to enter this securityplugin before routing jump and determine whether the current role is Have permission to enter this url. This part requires setting di in the service. A shortcoming of a framework was discovered during the coding process, foreach ($guestResources as $resource => $actions) {
$acl->allow('guest', $resource, '*'); The * here refers to all actions under the controller corresponding to the resource, not the previously defined action (which is inconsistent with the documentation), and it The allow or deny cannot exceed a certain number.
4. To send emails, the PHPMailer library is used, and you need to add the class.phpmailer.php and class.smtp.php reference paths. For details, see page 88 of "The Essence of PHP Language" OREILLY

5. Establishing the project and model layers can be completed with the commands phalcon project ABC and phalcon model ABC, which is more convenient and practical.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1093866.htmlTechArticleSummary of phalcon’s daily report submission platform, summary of phalcon platform: Mastered the basics of phalcon through the development of daily report submission system Framework principles and PHP language. I also learned some common linux instructions...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template