
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.
Jan 21, 2020 pm 01:03 PM
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.
Jan 15, 2020 am 09:07 AM
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.
Jan 14, 2020 pm 04:08 PM
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.
Jan 14, 2020 am 11:48 AM
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.
Jan 13, 2020 pm 03:55 PM
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.
Jan 13, 2020 pm 03:10 PM
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.
Jan 11, 2020 pm 04:06 PM
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.
Jan 11, 2020 pm 03:58 PM
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.
Jan 11, 2020 pm 03:30 PM
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.
Jan 11, 2020 pm 03:09 PM
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.
Jan 11, 2020 pm 02:42 PM
What should I do if the yii verification code does not display pictures?
The reason why the yii verification code does not display images is because of permission issues in the controller. The solution is to add code in the controller as "public function behaviors(){'only' => ['logout', 'signup','login'] ,}" and save it.
Jan 11, 2020 am 11:40 AM
Settings for yii 500 error page
How to set up the yii 500 error page: first create "ErrorHandler" to inherit the "yii\base\ErrorHandler" abstract class; then define the abstract method in this parent class; then create the view file "error.php"; and finally modify the application configuration The file "main" will do.
Jan 11, 2020 am 10:57 AM
How to load yii css file
How to load yii css files: First use the code "use yii\helpers\Html;" to introduce the file in the front view; then use the code "<?=Html::cssFile('@web/***/css) in Html /***.css')?>" just call it.
Jan 10, 2020 pm 05:36 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
