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 write logs in Yii framework?
- How to write logs in the Yii framework: first modify the configuration file, configure classes, levels, and logVars in the targets of the log; then write logs through the Yii::error(message) method in the program.
- YII 3490 2020-02-05 17:59:29
-
- How to write a yii framework form?
- How to write a yii framework form: first use ActiveForm::begin() to mark the start of the form and create a form instance; then use the field($model,'body') method to create an ActiveField object; finally use textarea() and other methods to create the form element.
- YII 1841 2020-02-05 17:59:14
-
- How to install the yii2.0 program?
- How to install the yii2.0 program: first download and install the composer program; then use the composer self-update command to update composer to the latest version; finally use the composer create-project command to install the yii2.0 program template.
- YII 2656 2020-02-05 17:59:02
-
- What is the minimum version of php for yii2?
- yii2 requires PHP5.4 or higher, which means that the minimum PHP version is php5.4; this version has many improvements compared to PHP 5.2 required by Yii 1.1; yii2 inherits the simplicity, speed, and high-end of yii Scalability.
- YII 4710 2020-02-01 14:40:03
-
- How to install yii2-adminlte
- How to install "yii2-adminlte": first enter cmd and switch to the "advanced" directory; then enter the code "composer require dmstr/yii2-adminlte-asset "2.*""; then configure the "main" file.
- YII 3236 2020-02-01 14:38:41
-
- Where is the directory of yii in the php yii framework?
- The directory of yii in the php yii framework is located under the "vendor/yiisotf/yii2" folder, where the file "behaviors" represents behavior, "caching" represents caching, "captcha" represents verification code, "console" represents console, etc.
- YII 2804 2020-01-15 09:07:05
-
- The operating mechanism of the yii framework
- The user submits a request to the entry script web/index.php; the entry script loads the configuration array and creates an application instance to handle the request; the application parses the requested route through the request application component; the application creates a controller ( Controller) instance specifically handles the request.
- YII 2702 2020-01-14 16:08:16
-
- What to do if yii2 installation error occurs
- Solution to the yii2 installation error: First install the "mbstring" extension module through the command "apt-get install php7.0-mbstring"; then use the command "apt-get install php7.0-xml" to install the xml extension.
- YII 2601 2020-01-14 11:48:07
-
- Where is the yii database configuration?
- yii configures the database information in the common->config->main-local.php file. Directly open the main-local.php file to configure the information for connecting to the database.
- YII 2889 2020-01-13 15:55:29
-
- What to do if the csv file exported by yii2 is garbled?
- yii method to avoid exporting CSV files with garbled characters: Use the iconv function to transcode the CSV file when exporting the CSV file. The iconv function can convert a string according to the required character encoding.
- YII 2348 2020-01-13 15:10:34
-
- How to modify the default homepage of yii2.0 framework
- How to modify the default homepage in the yii2.0 framework: 1. Modify under the configuration file main.php. 2. Add ‘defaultRoute’ => ‘default’ in the return array under the configuration file, and then create the Default controller and Index method.
- YII 3633 2020-01-15 10:50:15
-
- yii determines whether post submission
- How to determine whether a post submission is made in Yii: In the controller, determine whether the submission is through the post method. Use the "if(Yii::$app->request->isPost)" statement to determine. If the condition is true, it means a post submission.
- YII 2562 2020-01-11 15:58:26
-
- How to implement registration in yii2 framework
- The method for realizing registration in the yii2 framework: After submitting the registration information in the yii framework, the rules() function will perform preliminary verification. After all the formats are correct, the data will be transferred to the actionSignup() function, and then the registration information will be loaded in the signup() function.
- YII 2060 2020-01-11 15:30:07
-
- How to define error page in yii2
- How to define an error page in yii2: first set the error page style in the views/site/error.php file. Then use the "'errorAction'=>'site/error'," statement in the config/main.php file to call it.
- YII 2515 2020-01-11 15:09:55
-
- Where is the database configuration information of yii
- The yii public database configuration file is in /common/config/main-local.php. If the frontend and backend are different: the frontend is in /frontend/config/main-local.php and the backend is in /backend/config/main-local.php.
- YII 2688 2020-01-11 14:42:07