
How to jump to the page in yii framework
The method of jumping to the page in Yii framework is: [$this->redirect(array('the controller to jump to/the action in the controller to jump to','parameter'=>'value',,,,)); 】.
Feb 26, 2020 pm 03:29 PM
The difference between yii and thinkphp
The difference between yii and thinkphp: 1. Yii has multiple configuration files, while thinkphp has only one; 2. thinkphp has multiple ways to obtain parameters, while yii has only one; 3. The verification layer of yii is the rule of the model, while thinkphp has Introduce classes for the validation layer.
Feb 26, 2020 pm 03:11 PM
How does the Yii framework access the controller under the custom module?
The method for the Yii framework to access the controller under the custom module: 1. Create a directory; 2. Configure the web.php file; 3. Create a new SiteControllers.php file; 4. Browser access.
Feb 26, 2020 pm 02:42 PM
How to generate hyperlinks in yii framework
The method to generate hyperlinks in the yii framework is to use the built-in URL generation tool of yii2, such as [\Yii::$app->urlManager->createAbsoluteUrl($params, $schema = null)].
Feb 26, 2020 pm 02:21 PM
How to enable web debugging function in Yii framework
How to turn on the web debugging function in the Yii framework: 1. First turn on the debug mode in the entry file index.php; 2. Then open the protected/config/main.php file and configure the log parameters.
Feb 26, 2020 pm 02:04 PM
yii2 uses the inequality sign to query
yii2 query method using the inequality sign: [$details=MovieShows::find()->where(['movie_id'=>$id])->andWhere(['<>','cancel_date', $date ])->all()】.
Feb 26, 2020 pm 01:54 PM
How to submit ajax in yii2
Ajax submission method in yii2: [$form = ActiveForm::begin(['id' => $model->formName(),'action' => ['/apitools/default/index']]);].
Feb 26, 2020 pm 12:02 PM
Where does the yii2 framework need to be decompressed after downloading it?
After downloading the yii2 framework, you need to unzip it to the website root directory of the local server, which is the WWW directory. If you are using an integrated environment, such as phpstudy, then the corresponding website root directory is: [../phpstudy/WWW].
Feb 26, 2020 am 11:42 AM
How to modify the database connection in yii2
How to modify the database connection in yii2: just overwrite the [yii\db\ActiveRecord::getDb()] method, such as [public static function getDb(){return \Yii::$app->db2;}].
Feb 26, 2020 am 11:28 AM
How to set the time zone in yii2.0
The method to set the time zone in yii2.0 is: first open the main.php file, and then add the configuration ['timeZone' => 'Asia/Shanghai', 'dateFormat' => 'yyyy-MM-dd'].
Feb 25, 2020 pm 05:34 PM
How to output error message in yii2
The method for yii2 to output error information is: You can use the error handler [error handler]. The error handler adjusts the error display according to the value of the constant YII_DEBUG. When YII_DEBUG is false, only the error information will be displayed.
Feb 25, 2020 pm 05:17 PM
How to customize 500 error in yii2
The method for customizing 500 errors in yii2 is: 1. Create an ErrorHandler, inherit the yii\base\ErrorHandler abstract class, and then define the abstract method in this parent class; 2. Create a view file; 3. Modify the configuration file.
Feb 20, 2020 pm 04:15 PM
The difference between yii1 and yii2
The difference between yii1 and yii2: the difference in controller calls, such as yii1: [index.php?r=userGroup/index&page=1], yii2: [index.php?r=user-group/index&page=1].
Feb 20, 2020 pm 04:02 PM
How to execute php script in yii
Methods for executing php scripts in Yii: 1. [yiic.bat Test Index]; 2. [yiic Test Index]; 3. Generate script [.bat] files and execute them regularly.
Feb 20, 2020 pm 03: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
