
What should I do if yii mailer cannot send it?
The solution to the problem that yii mailer cannot send: first set the configuration file "main.php" with the code "'mailer' => ['class' => 'yii..']"; then add the code "useFileTransport" in the controller ' => false".
Apr 05, 2020 am 10:35 AM
How to use user component in yii2
How to use the user component in yii2: first use composer to install the yii2-user component; then configure the component; finally, pass Yii::$app->user in the code to use the user component.
Mar 19, 2020 pm 06:14 PM
What are Yii and Redis?
Yii is a component-based high-performance PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials; redis is a high-performance key-value database that is completely It is open source and free, and redis is a NOSQL database.
Mar 19, 2020 am 11:39 AM
How to specify the running path in yii
How to specify the running path in yii: first open the configuration file/config/main-local.php; then add a line of code "'defaultRoute'=>'index',"; and finally reopen the page.
Mar 13, 2020 pm 06:00 PM
How to use yii filter
A Yii filter is a piece of code that can be configured to be executed before or after the controller action is executed. It must override the controller's public function filters() method in the controller to set which filter will act on which action.
Mar 11, 2020 pm 04:54 PM
Why does the yii verification code not refresh?
The reason why the yii verification code is not refreshed is because renderPartial() does not automatically render and output the client script by default. It needs to specify parameters to output and render, so the solution is to specify processOutput as true.
Mar 11, 2020 pm 04:32 PM
Where is the yii database configuration file?
Yii's 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.
Mar 11, 2020 pm 03:47 PM
How to introduce js into yii2.0
The method for introducing js in yii2.0 is: 1. Use the inline script registerJs() to register the js code internally; 2. Use the external script registerJsFile() to import the js file externally.
Mar 11, 2020 pm 02:41 PM
Solution to 400 error in yii2
Solution to 400 error in yii2: 1. Turn off CSRF. 2. Add hidden fields to the form. 3. Add the _csrf field to AJAX.
Mar 11, 2020 pm 02:31 PM
The difference between yii2 and tp5
The difference between yii2 and tp5: 1. Yii has multiple configuration files, overlay configurations, multiple environment configurations, and local and online environment configurations. tp has only one type; 2. There are many page controls in yii, such as list/grid/detail, etc., tp does not have them. .
Mar 11, 2020 pm 02:30 PM
Where to set language in yii
?The location to set the language in yii: 1. Set in app\web\index.php. 2. Add the code to set the language in app\config\web.php.
Mar 11, 2020 pm 02:23 PM
How to connect multiple databases in yii2
The method for yii2 to connect multiple databases is: 1. First, open the database configuration file common\config\main-local.php; 2. Then, add db2 under the original db configuration item and configure the properties of the second database. .
Mar 11, 2020 pm 02:17 PM
What is the entry file of yii framework
The entry file of the yii framework is index.php, which is located under the web directory. The entry file can set the current running mode and environment of the program, including debugging status, product environment, test environment, and development environment.
Mar 11, 2020 pm 02:05 PM
How to access debug in yii2
How to access debug in yii2: 1. Install the debug tool in the project; 2. Configure web/index.php; 3. Configure config/web.php; 4. Add web-local.php; 5. Set the runtime directory to be readable and writable.
Mar 11, 2020 pm 01:52 PM
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
