Phalcon Report Submission Platform Summary, Phalcon platform
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) hyperlinks, $_get["name"];
(3) hyperlink, gets the parameter from the background function name () parameters
2. Two methods of data global:
(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, 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.
http://www.bkjia.com/PHPjc/1093866.html www.bkjia.com true http://www.bkjia.com/PHPjc/1093866.html techarticle Phalcon Report Submission Platform Summary, Phalcon platform Summary: Through the development of the daily report submission system, master the Basic principles of Phalcon Framework and PHP language. Also know some Linux commonly used to refer to ...