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:
-
- How to adaptively switch templates in yii2
- The method for adaptively switching templates in yii2 is: 1. First create a behavior; 2. Then create a base class BaseController.php; 3. Create H5Views under frontend and place the H5 template file there.
- YII 2533 2020-02-10 11:14:45
-
- yii framework routing configuration
- Yii framework routing configuration method: 1. First, enable the rewrite module in the server configuration (httpd.conf); 2. Add the server configuration file [.htaccess] in the directory; 3. Then add the urlManager configuration item; 4. Finally restart Just the server.
- YII 1809 2020-02-06 18:19:19
-
- How to reference adminlte to yii2
- The method for adminlte to reference yii2: first download and install the yii2 framework; then create the user table in the database; then execute the command "composer require mdmsoft/yii2-admin "~2.0"" in the windows environment.
- YII 2121 2020-02-04 09:01:21
-
- How to catch yii2 exceptions
- The method of catching exceptions in yii2: first throw an exception in method a; then use the use keyword to import Exception; finally use the try{}catch(\Exception $e) statement to catch the exception.
- YII 3240 2020-02-03 17:00:03
-
- What should I do if nginx does not support yii?
- The solution to the problem that nginx does not support yii: first open the "nginx.config" configuration file; then add "server" to the file and change "root" to the directory where the "index.php" file is located; finally open the "web.php" file And set the access permission to "777".
- YII 2888 2020-02-03 10:25:27
-
- How to use mutex yii
- "mutex" in Yii refers to the "Mutex component", which allows concurrent processes to execute each other to prevent "race conditions"; the syntax for using "mutex" is "if ($mutex->acquire($mutexName)) { } else {}".
- YII 3132 2020-02-03 10:19:08
-
- How to connect Yii2 to PostgreSql
- This article introduces the method of connecting the Yii2 framework to PostgreSql. It has certain reference value. Now I share it with you. I hope it will be helpful to you!
- YII 3219 2020-02-02 21:12:47
-
- The difference between yii and cms
- CMS refers to content management system, which is usually a developed web application that can be used on the server; Yii is a framework for developing web applications, which can be used to develop CMS programs.
- YII 3085 2020-02-05 17:58:34
-
- What should I do if the yii verification code does not come out?
- The solution to the yii verification code not coming out: first open the "CCaptchaAction.php" file; then delete the spaces in the text; then add "error_reporting(0);" at the top of the php file; finally add "ob_clean();" before the header output. That’s it.
- YII 2456 2020-02-01 14:42:43
-
- How to enable error prompts in yii
- How to enable error prompts in yii: first open the "index-test.php" file; then add the code "error_reporting(E_ALL & ~E_NOTICE);"; then open the "main.php" file; and finally modify the code to "log=>array "That's it.
- YII 4229 2020-02-01 14:42:25
-
- How to obtain sql statement in yii2?
- To obtain sql statements in yii2, you can use the getRawSql() method. After writing the query statement, call the $query->createCommand()->getRawSql() method.
- YII 6301 2020-02-05 17:56:14
-
- Detailed explanation of yii1.1 installation steps
- yii1.1 installation steps: First download the yii1.1 framework from "yiiframework.com"; then extract the yii compressed package to a web-accessible directory; finally enter "/to/yii/requirements/index. php" and access it.
- YII 3297 2020-02-01 14:41:58
-
- How to make a pop-up window in Yii
- How to make a pop-up window in Yii: first create the "list.php" template; then add the code as "echo $this->render('remarks',['model'=>$remarkModel]);"; then create a template pop-up window file, the code is "use yii\help".
- YII 2814 2020-02-01 14:41:37
-
- What to do if a 502 error occurs when deploying a yii project
- The yii 502 error occurs because the FastCGI server listening port specified by the nginx virtual host is wrong, resulting in nginx not getting a response from the FastCGI server; therefore, when the browser makes a request, nginx returns a 502 status code to the browser; the solution is to modify Just enter the correct port number.
- YII 3219 2020-02-01 14:40:48
-
- How to deploy yii framework project
- How to deploy the yii framework project: first place the downloaded yii framework file in the php environment directory; then press the [Windows+R] key combination to open the CMD command form; then enter the "yiic" directory and customize the project path and Just name it.
- YII 3095 2020-02-01 14:40:26