Validation can be verified directly in PHP
$value = '电商';preg_match('/^[a-zA-Z\x{4e00}-\x{9fa5}][a-zA-Z_\-\x{4e00}-\x{9fa5}]*$/u',$value,$m)
cannot be verified in the method of the Phalcon controller,
public function registerAction() { if(
The session of the Phalcon is the frame itself, it seems to only distinguish between multiple applications,
The structure of my current project is like this
project application controllers library models modules user
To develop high-performance applications, you must consider the following factors: servers, clients, networks, databases, web servers, and static resources. In this chapter, I focus on how to improve system performance and how to detect application
Follow Phalcon Official document go to the Model force cache, an old error occurred: Cache didn ' t return a valid resultset.The exact meaning is that the cache does not return a valid result set.Modelscache as follows:/*** @return Redis*/Public
Install git first and then download the installation file from Git://github.com/phalcon/cphalcon.git to install it!CompileChmod-r 777 Cphalcon1. Create a source extension from C follow these steps: Automatically detect your schemagit clone--depth=1
Go to git to download the corresponding version of the frameworkCommand line:sudo yum install php-devel pcre-devel gcc makeThen use Git clone to the server, and thenclone git://github.com/phalcon/cphalcon.gitcd cphalcon/./installThen check
Today, I'm going to add a scheduled task under the Phalcon project to send mail.See the official website example, configuration and operation are a little messy, there is a bug, see Remarks, my side mainly explain how to command line configuration
Phalcon ?? Basic PHP knowledge (I) I. variables and constants
1.1. variable name (Identifier)
1) variable: sign starting with $2) variable name: it may consist of letters, numbers, and _ 3. it cannot start with a number.
3) the identifier is
Is that my model has defined the validation () method, so the controller calls create (), save (), update () and other methods before the database will automatically go validation () This method, there is no way to let him not go, Skip this method.
How to install Phalcon on PHP
Always install not successful on the official web tips to engage
First put in the Ext folder and then the php.ini inside add extension=php_phalcon.dll and then restart Wamp to prompt this error ...
And then I'm going
Install the PHP environment through the source code, install the extension according to Phalcon official document, will encounter Php-config is not installed pit.Try the following command to resolve:1 cd/opt/cphalcon-3.2. 1/build/php7/64bits2 &&
In the consolidated Swoole HTTP server and phalcon,server.php are as follows:
Registerdirs (Array ('.. /apps/controllers/', '. /apps/models/')); $loader->register (); }/** * This methods registers the services to being used by the
Phalcon to make a daily report submission platform Summary
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
1. Problem: With the official example, the home page can open normally, but for example/signup,contact/index such a connection is 404 File not find, such errors. The above issues are good in Apache Web server.Workaround: URL rewriting is causing.
Variables and constants 1.1, variable names (identifiers)1) Variable: $ opening flag2) Variable name: can be by letter. Numbers, _ 3, cannot start with numbers3) identifiers are distinguished by uppercase and lowercase. However, the function name
This article mainly introduces the understanding of PHP dependency injection, and analyzes in detail the related concepts and principles of PHP dependency injection based on the instance form, for more information about PHP dependency injection, see
This example describes the understanding of PHP Dependency Injection. Share to everyone for your reference, specific as follows:
See Laravel of the IOC container document is only introduced examples, but did not say the principle, before using the
Why use Docker
One place to compile, to use everywhere
Easy migration, regardless of hosting environment
Environment and host isolation
Rapid deployment of the development environment
A very common scenario: after changing
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.