
How to check server 500 error in yii2
How to check the server 500 error in yii2: 1. Change defined('YII_DEBUG') in index.php to define('YII_DEBUG',true). 2. Change the permissions of the assets folder to 777.
Dec 17, 2019 pm 02:10 PM
How to get errors in yii model
In Yii, use the "$errors=$model->getErrors();" statement to obtain all error information. getErrors(): returns errors for all attributes or a single attribute, that is, returns all errors that occurred during verification.
Dec 17, 2019 pm 02:03 PM
yii2 post failed (400 error) solution
Solution to post400 error in yii2: 1. Turn off Csrf ($this->enableCsrfValidation=false;). 2. Add hidden fields to the form. 3. Add the _csrf field to AJAX.
Dec 17, 2019 pm 01:56 PM
How to print sql in yii
If you want to print Sql, you can replace the command you want to execute, such as queryAll(), queryOne(), execute(), with getRawSql() to print the SQL statement.
Dec 17, 2019 pm 01:48 PM
Why doesn't Yii have a template engine?
YII does not have a template engine because PHP itself is the best template engine. If Yii has a template engine, the template engine will eventually have to be compiled into PHP during debugging.
Dec 17, 2019 pm 01:39 PM
What are the differences between yii and tp?
The difference between yii and tp: 1. Configuration: yii has multiple configurations and is more flexible. There is only one type of tp. 2. Page controls: Yii has a variety of page controls, but TP does not have page controls. 3. Get and post methods: There are many methods in tp, but only one in yii. 4. TP’s ORM is character, and arrays are also available. YII can only be arrays.
Dec 16, 2019 pm 02:32 PM
How to register in yii
How to implement registration in yii: You can see the registration page in the advanced template. After filling in the registration information, the rules() function will perform preliminary verification. After all formats are correct, the data is input into the actionSignup() function.
Dec 16, 2019 am 10:22 AM
Where are yii error messages recorded?
yii error information is recorded in the database. How to use the database to record error information: We can set the database configuration in the configuration file main.php, and then use the command to create a data table to save the error information.
Dec 14, 2019 am 11:36 AM
How to modify the error page style in yii2
The default error action of yii2 is handled by the error action under the site controller. The corresponding error view page is the error.php page. You can modify the layout file of the error.php page by modifying the actions() method.
Dec 14, 2019 am 11:22 AM
Where is the yii log file?
File path configuration command Yii::$app->log->targets[0]->logFile = Yii::getAlias('@runtime').DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPAR.‘……’
Dec 14, 2019 am 11:08 AM
Can yii2 connect to db2?
Can. Open the database configuration file common\config\main-local.php, add db2 under the original db configuration item, and configure the properties of the second database.
Dec 14, 2019 am 10:56 AM
How to set up the popup layer in yii2
Use use yii\bootstrap\Modal; to create a button to adjust the display of the modal. Modal is a modal window, which is a pop-up window in layman's terms. It is a bootstrap js plug-in.
Dec 14, 2019 am 10:49 AM
How to change the verification code in yii framework
Most solutions on the Internet are solved by modifying the code in vendor/yiisoft/yii2/captcha/CaptchaAction.php; such as modifying the default parameter values ??of the getVerifyCode() method and changing the verification code.
Dec 14, 2019 am 10:28 AM
Where is the routing of yii framework?
Routes for the Yii framework can be obtained through the URL manager. The URL manager provides the method parseRequest() to parse the request and parse out the routing and parameter information. The method createUrl() is used to generate a URL from the given route and parameter information.
Dec 14, 2019 am 10:20 AM
Hot tools Tags

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
