
-
All
-
web3.0
-
Backend Development
-
Web Front-end
-
All
-
JS Tutorial
-
HTML Tutorial
-
CSS Tutorial
-
H5 Tutorial
-
Front-end Q&A
-
PS Tutorial
-
Bootstrap Tutorial
-
Vue.js
-
-
Database
-
Operation and Maintenance
-
Development Tools
-
PHP Framework
-
Common Problem
-
Other
-
Tech
-
CMS Tutorial
-
Java
-
System Tutorial
-
Computer Tutorials
-
Hardware Tutorial
-
Mobile Tutorial
-
Software Tutorial
-
Mobile Game Tutorial

What should I do if the yii2 project Action reports a 403 error?
The solution to the 403 error reported by the yii2 project: first open the corresponding code file; then modify the writing method in the ACF verification; finally, separate the words with "-" symbols to solve the 403 error.
Jul 20, 2020 am 10:00 AM
How to prevent xss attacks in yii2
The method of yii2 to prevent XSS attacks: first define an "actionClean" method to prevent XSS attacks; then implement the removal of special characters in the method body; and finally call this method.
Jul 20, 2020 am 09:55 AM
How to modify the yii2 logo
How to modify the yii2 logo: first find and open the "/layouts/main.php" file; then add the code as "Html::img('/images/logo.png'...)"; finally save the modification.
Jul 20, 2020 am 09:51 AM
How to query the database in yii1.1
yii1.1 method of querying the database: first specify the database to be used through the statement "$dbh = Yii::app()->db;"; then use the "$cmd->queryAll();" method to query and return the results All rows of .
Jul 20, 2020 am 09:47 AM
How to set error message language in yii2
How to set the error message language in yii2: first find and open the configuration file; then write the statement as "'language'=>'zh-CN','timeZone'=>'Asia/Shanghai',"; finally save the changes. .
Jul 20, 2020 am 09:44 AM
How to configure the yii table prefix
The configuration method of Yii table prefix: first modify the db configuration in the component; then modify the tablename attribute in the corresponding model, and modify the statement such as "public function tableName(){return '{{%user}}';}".
Jul 20, 2020 am 09:41 AM
How to use the yii framework after downloading it
How to use the yii framework after downloading: first install the yii framework; then configure the web server; then start Apache or Nginx, PHP, MySql; finally visit "hostname.com" to use the YII framework.
Jul 20, 2020 am 09:37 AM
How to open gii in yii2
How to open gii in yii2: first check the configuration code in the "config/web.php" file; then open the "web/index.php" file; and finally set "YII_ENV_DEV" to "true".
Jul 20, 2020 am 09:32 AM
What to do if yii2 save fails?
Solutions to unsuccessful yii2 save: 1. Use the "$model->errors" method; 2. Check whether the return value of the overridden AR life cycle method is incorrect, with statements such as "yii\db\ActiveRecord::afterValidate()" .
Jul 20, 2020 am 09:17 AM
How to add id to yii button
How to add id to yii: first determine whether the CHtml class is used; then directly write the attributes and the values ??corresponding to the attributes in the array behind. The statement is "CHtml::button("test",array('id '=>'Button id'))".
Jul 20, 2020 am 09:12 AM
Where does yii add sql logging configuration information?
How to add sql log information to yii: first find and open the "config/web.php" file; then add the configuration as "'categories'=>['yii\db\*','app\models\*']," ;Finally test it.
Jul 20, 2020 am 09:07 AM
what does yii stand for
yii stands for "Yii Framework", which means the yii framework, which is a high-performance PHP framework based on components for developing large-scale web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials. Yii provides It provides the functions required for today's Web2.0 application development.
Jul 20, 2020 am 09:04 AM
How to remove csrf in yii framework
Methods to remove csrf in the yii framework: 1. Turn off csrf through the "init" method; 2. Add a hidden field to the form; 3. Add the "_csrf" field to AJAX.
Jul 18, 2020 pm 05:16 PM
Where is the yii root directory?
The yii root directory refers to the project directory, which is the "basic" directory. Developers can develop any projects based on this directory, such as websites, crm, malls, etc.; while the directory of the yii2 framework refers to the "vendor/yiisoft" directory.
Jul 18, 2020 pm 04:46 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.

ArtGPT
AI image generator for creative art from text prompts.

Stock Market GPT
AI powered investment research for smarter decisions

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

Hot Topics

