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 Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to conditionally query in yii framework
- Conditional query: "$customers = Customer::find()->where($cond)->all();". $cond is what we call a condition, and the way the condition is written varies depending on the query data.
- YII 2750 2019-12-07 15:33:15
-
- Check whether yii is installed successfully
- How to check whether yii is installed successfully: After installing the yii framework, open the browser and enter http://localhost/../index.php in the browser to check whether the yii framework is installed successfully.
- YII 2839 2019-12-07 14:44:21
-
- How to re-url in yii
- The method to re-"url" in "yii" is: 1. Change the project address to static mode (pseudo-static===Url routing management). This process requires the support of the "apache" function module (url rewriting module) ; 2. Edit the project configuration file; 3. Use the "createUrl" method of the framework.
- YII 15669 2019-12-07 11:48:51
-
- After yii2 adds a field to the database table, the corresponding model cannot recognize the attribute.
- The reason why the corresponding model cannot recognize the attribute after "yii2" adds a field to the database table is: the structure of the database table should be cached. The solution is: delete the "runtime" folder or clear the cached data of the specified database table structure.
- YII 3306 2019-12-07 11:17:16
-
- Comparison of yii2 and laravel framework
- Comparison between the "yii2" framework and the "laravel" framework: Comparing in terms of development speed, the "yii" framework can use the "gii" scaffolding to quickly generate code without the need to write special effects and styles, while "laravel" can also Quickly create controllers, models, routes, etc. with the help of "artisan" tools.
- YII 6017 2019-12-07 11:04:59
-
- Solution to garbled yii2 page
- Solution to the garbled code on the yii2 page: Configuring the encoding format in the database configuration can solve the problem. The setting statement is: "'dsn'=>'mysql:host=127.0.0.1;dbname=ohmycto;charset=utf8',".
- YII 2998 2019-12-07 11:02:01
-
- How to set the default access home page in yii
- How to set the default homepage for yii: Add: "'defaultRoute'=>'login/index' (controller/method)" in config->main.php to change the default homepage.
- YII 4295 2019-12-07 10:52:18
-
- yii2 determines whether it is submitted in post mode
- How yii2 determines whether it is submitted in post mode: You can use the if(Yii::$app->request->isPost) statement to determine. If the condition in the if statement is true, it means that it is a post submission, and if it is not true, it means that it is not a post submission.
- YII 3163 2019-12-07 10:35:11
-
- How to define yii controller
- In Web applications, the yii controller should inherit yii\web\Controller or its subclasses. Similarly, in console applications, the controller inherits yii\console\Controller or its subclasses.
- YII 2842 2019-12-04 13:33:24
-
- There are several ways to connect to the database in yii
- Yii connects to the database through PDO, Active Record, Criteria and Query Builder methods. There is already Query in Yii2, which is better in performance than ActiveRecord and can be used as a replacement.
- YII 3021 2019-12-04 13:18:21
-
- How to enable debugging mode in yii
- yii enable debugging mode command: define('YII_DEBUG', true); //Whether to debug BUG, please enable local testing; defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);.
- YII 5638 2019-12-04 12:00:31
-
- What is yii csrf
- CSRF is an attack method that coerces users to perform unintentional operations on the currently logged-in web application. Yii has a CSRF verification mechanism. Get the token value used for CSRF verification; determine whether the token used for CSRF exists. If it does not exist, use generateCsrfToken() to generate it.
- YII 2736 2019-12-04 11:49:29
-
- What are yii2.0 components?
- Components are the main building blocks of Yii applications. Is an instance of the yii\base\Component class or its subclasses. The three main functions that distinguish it from other classes are Properties, Events, and Behaviors.
- YII 3052 2019-12-04 11:39:11
-
- What kind of framework is the yii framework?
- The yii framework is a high-performance, component-based PHP framework for rapid development of modern web applications. The name Yii (pronounced Yi) has dual meanings in Chinese of "extreme simplicity and continuous evolution", and can also be regarded as the abbreviation of Yes It Is!.
- YII 2556 2019-12-04 11:26:52
-
- What is a module in Yii
- Modules in Yii are independent software units, consisting of models, views, controllers and other supporting components. End users can access the controllers of installed modules in the application body. The modules are treated as small application bodies, and the application The difference between the main body and the main body is that the module cannot be deployed independently and must belong to an application main body.
- YII 1916 2019-12-04 11:22:12