The grouping function of ThinkPHP is widely used by developers. it can solve problems that are difficult to manage due to too many MVC hierarchical files in medium and large projects. The grouping function of ThinkPHP is widely used by developers.
In the relations of yii, self: BELONGS_TO is joined with the primary key of the associated table by default,
In the relations of yii, self: BELONGS_TO is joined with the primary key of the associated table by default. for example:?
The page method is also one of the model's coherent operations, and is a user-friendly operation method born for paging queries. The page method is also one of the model's coherent operations, and is a user-friendly operation method born for paging
The I method of ThinkPHP is added in version 3.1.3. if you are using the previous 3. * version, you can directly refer to the variable section in the series of getting started tutorial 3.1. (This method will be discarded in future versions. In fact,
Video tutorials created based on the latest 3.1.3 framework are made by the backend network and have their own characteristics. we recommend that you learn ^_^.
Video tutorials created based on the latest 3.1.3 framework are made by the backend
The independent grouping of tp looks good, but the official team does not provide detailed examples and instructions. here, based on my actual development process, I will give the following instructions: the independent grouping of tp looks good,
Behavior is a key extension in the ThinkPHP extension mechanism. Behavior can be called independently or bound to a tag for listening, in the CBD model officially proposed, behavior also occupies a major position. it can be seen that behavior is of
The getField method is used to obtain field values in ThinkPHP. Unlike the select and find methods, getField is generally only used to obtain the values of individual fields. But in fact it is not that simple. the usage of this method is summarized
ThinkPHP supports multiple languages and uses language files. If your application involves multiple language versions and international support, you can define related language pack files. You can define language constants for output in any string
Automatic verification is a data verification method provided by the ThinkPHP model layer. you can perform automatic data verification when using create to create a data object. Automatic verification is a data verification method provided by the
In the previous chapter, we learned how to assign variables to template variables through the assign method. This article details how to use tags to output Template variables in templates. In the previous chapter, we learned how to assign variables
In ThinkPHP's coherent operation method, the field method has many usage skills. The main purpose of the field method is to identify the fields to be returned or operated. The following describes how to use the field method. In ThinkPHP's coherent
The N method is a counter method used for core queries, cache statistics, and statistics. However, it can be used for other counting purposes of the application. its usage is relatively simple. calling the format N method is a counter method and is
The C method is ThinkPHP's method for setting, obtaining, and saving configuration parameters, which is frequently used. The C method is ThinkPHP's method for setting, obtaining, and saving configuration parameters, which is frequently used.
To
The A method is used to instantiate A controller internally. The Call format is as follows: A ('[ project: //] [group/] module', 'Controller layer name: method A is used to instantiate the controller internally. The Call format is as follows:
A ('
In ThinkPHP, the page output process is to read the template file and then parse the template (or call a third-party template engine for parsing). However, in some cases, we have not defined the template file, or save the template file in the
The U method is used to assemble URL addresses. it is used to automatically generate the corresponding URL address based on the current URL mode and settings. the format is U, the feature is that the corresponding URL address can be automatically
That is, the suffix can be defined for the operation method. if the above parameter is configured, the actual operation method we call is to add the operation name with the Run suffix, assume that the URL address we are currently accessing is the
In version 3.0, the group does not support defining independent empty modules. the empty EmptyAction module can only be placed in the outer layer of the group Directory. in version 3.1, the independent empty modules can be defined for each group, it
Starting from this article, we will explain in detail the usage of built-in functions in the framework. D method D should be a lot of methods used to instantiate a custom Model class. it is an encapsulation of Model class instantiation by the
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