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 update data in yii
- Methods for updating data in yii: 1. Use the update(true, updated field) method to update data; 2. Use the updateAll() method to update multiple pieces of data; 3. Use find() to find data, and after changes, call the save() method Just save it.
- YII 4523 2020-02-17 11:41:38
-
- Yii uses rules to get error information
- Yii uses rules to obtain error information: first use the rules function in the model to return array type data; then use new myModel() in the controller to instantiate the relevant table model class; finally use the getErrors() method to obtain error information.
- YII 2561 2020-02-17 11:26:13
-
- yii encrypted string garbled characters
- The solution to garbled characters in yii encrypted strings: first use base64_decode($uid) to decode the encrypted data; then use \yii::$app->security->decryptByPassword() to decrypt the data to ensure that it is not garbled.
- YII 1857 2020-02-17 11:15:33
-
- The difference between yii2 and ci
- The differences between yii2 and ci are: 1. yii2 code is elegant and concise, and ci has a very large space for customization; 2. yii2 is very easy to expand, and ci needs to write extensions yourself; 3. yii2 has a relatively high learning curve, and ci has the characteristics of being easy to get started, etc. wait.
- YII 4180 2020-02-17 10:35:53
-
- Use php in yii2 to determine whether the image exists
- How to use PHP to determine the existence of an image in Yii2: 1. Use the file_exists() function, pass in the path of the image, and return true if it exists; 2. Use the file_get_contents() function, pass in the path of the image, and return the image content if it exists, etc. .
- YII 2047 2020-02-17 10:00:31
-
- How to get the new data id in yii
- The method for yii to obtain the newly added data ID: first use Yii::$app->request->post() to obtain the submitted data; then use new User() to instantiate the object; finally use the setAttributes() method and $model ->id can get the id value.
- YII 2785 2020-02-17 09:40:48
-
- 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 2437 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 1703 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 2013 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 3094 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 2705 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 3010 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 3022 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 2952 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 2312 2020-02-01 14:42:43