current location:Home > Technical Articles > PHP Framework > YII
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Where to register yii2 view
- View provides a set of methods for rendering purposes. By default, View is configured as an application component in yii\base\Application. You can access this instance via Yii::$app->view.
- YII 2486 2019-12-14 09:47:20
-
- yii2 custom error handling
- In Yii2 error custom processing, we understand the principle of Yii2 error registration and know that after the error occurs, Yii2 will call the handleException and handleError methods of the yii\web\ErrorHandler class object.
- YII 3454 2019-12-14 09:34:20
-
- Which one to use between yii and laravel?
- yii. Because the Yii framework is very malleable, many core modules can be inherited and rewritten, or unused modules can be skipped directly. The Gii tool can quickly generate CURD and model code, and it is really worry-free to write the management backend. Yii2's code comments are very detailed and can be viewed as documentation.
- YII 2061 2019-12-14 09:29:36
-
- How to build a configuration environment in the yii framework
- The method to build the configuration environment of the yii framework is: 1. First, download the yii framework from the official website; 2. Then configure the environment variables, and open [Computer], [Properties], [Advanced System Settings], [Environment Variables], [System Variables] in order , add the php path to the path variable; 3. Finally, place the yii framework in the root directory.
- YII 2990 2019-12-13 17:24:25
-
- The yii framework hides the index.php file
- The method for the yii framework to hide the index.php file is: 1. First modify the apache configuration file, enable the [mod_rewrite] module, and then restart apache; 2. Then add the corresponding code to the relevant files in the project; 3. Finally, add the corresponding code to the index Just add the corresponding file in the same directory as the file.
- YII 2505 2019-12-13 17:08:25
-
- In yii2.0, it prompts csrf that the data you submitted cannot be verified.
- The solution to the csrf prompt that the data you submitted cannot be verified in the yii2.0 framework is to turn off [csrf] verification. The specific steps are: 1. You can make corresponding settings in the controller file; 2. You can add hidden fields to the form; 3. Use [ajax] to submit.
- YII 3389 2019-12-13 16:50:41
-
- How to introduce css files in yii framework
- The method to introduce css files in the yii framework is: 1. First create a file directory and create a css file directory in this directory; 2. Then create a php file in the relevant directory; 3. Then configure the environment variables and create the project entry file in Introduce the configured system environment files; 4. Finally, output the environment variables in the style template.
- YII 3214 2019-12-13 16:27:48
-
- How to create a project using yii framework
- The method to create a project using the yii framework is: 1. First, you need to download the yii framework; 2. Then configure the environment variables, configure the environment variable value of yiic to the path where yii framework yiic is located, configure the environment variable value of php.exe to php in the server The path where .exe is located; 3. Finally, use the command to create the yii project.
- YII 3136 2019-12-13 16:07:04
-
- Why is yii fast?
- Yii is so fast because it uses lazy loading technology extensively. For example, the class will not be included until it is used for the first time; the object will not be created until the object is accessed for the first time.
- YII 2414 2019-12-11 12:00:00
-
- How to define routing in yii framework
- When a YII application starts processing a request, the first thing it does is convert the request URL into a route. The role of routing is to subsequently instantiate corresponding controllers and operations in order to process requests. The entire processing process is called routing.
- YII 3947 2019-12-11 11:47:48
-
- How to determine whether to log in using yii
- How to determine whether the user is logged in in Yii: In Yii2.0, to determine whether the user is logged in, use the "Yii::$app->user->isGuest;" statement to determine. If the condition is true, it means that the user is not logged in.
- YII 2546 2019-12-09 17:06:51
-
- How to install yii2.0
- First install Composer, then install the Yii framework, unzip and put the file package into the project root directory of the server. Then open the web.config file in the config folder, find cookieValidationKey, add the password and save it.
- YII 2108 2019-12-09 14:42:36
-
- How to query data in yii2
- Query method: Return all data: User::find()->all(); Return a piece of data with primary key id=1: User::findOne($id); Sort query: User::find()->orderBy( 'id DESC')->all(), etc.
- YII 4292 2019-12-09 14:17:25
-
- How to create your own project in yii
- How to create your own project in yii: Use the "yiic webapp E:\wamp\www\yii\shop" command to specify the project name and project path to be created, and then enter yes in the next prompt to create the project.
- YII 2277 2019-12-09 13:56:53
-
- How to write subquery in yii2 framework
- 子查询:“$subQuery = Order::find(), where(['user_id' => $userId]), andWhere(['status' => $status]);”.
- YII 5080 2019-12-09 13:52:30