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 configure the routing of yii framework
- How to configure routing in Yii framework: 1. First enable the rewrite module in the server configuration (httpd.conf); 2. Add the server configuration file [.htaccess] in the directory; 3. Add the urlManager configuration item; 4. Restart the server.
- YII 1788 2020-02-26 16:16:10
-
- How to run yii2.0 files on the php command line
- The method to run the yii2.0 file on the php command line is: 1. First create a new controller script file; 2. Execute the script on the command line, such as [php web/yii refresh-tui-cur/tui-refresh].
- YII 2691 2020-02-26 15:55:15
-
- yii2 failed to connect to database
- The solution to the failure of yii2 to connect to the database is: 1. Open the DB.php file; 2. Change the host of the dsn in the PDO connection from [localhost] to [127.0.0.1].
- YII 2910 2020-02-26 15:38:00
-
- 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',,,,)); 】.
- YII 2765 2020-02-26 15:29:17
-
- 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.
- YII 2737 2020-02-26 15:11:36
-
- 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.
- YII 2518 2020-02-26 14:42:27
-
- 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)].
- YII 2233 2020-02-26 14:31:13
-
- 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.
- YII 2051 2020-02-26 14:31:51
-
- 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()】.
- YII 4645 2020-02-26 14:32:24
-
- How to submit ajax in yii2
- Ajax submission method in yii2: [$form = ActiveForm::begin(['id' => $model->formName(),'action' => ['/apitools/default/index']]);].
- YII 1809 2020-02-26 12:02:06
-
- 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].
- YII 1669 2020-02-26 11:42:40
-
- 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;}].
- YII 2836 2020-02-26 11:28:30
-
- 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'].
- YII 2407 2020-02-25 17:34:10
-
- 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.
- YII 5256 2020-02-25 17:17:49
-
- 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.
- YII 2410 2020-02-20 16:15:31