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 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 4104 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 6151 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 3141 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 2707 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 3037 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 2846 2020-02-01 14:40:26
-
- 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 3365 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 1733 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 2499 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 4494 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 3076 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 2687 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 2588 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 2497 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 2540 2020-01-13 15:55:29