
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
What language is the yii framework written in?
The yii framework is written in PHP language. Yii is a component-based, high-performance PHP framework for developing large-scale web applications. Yii is highly reusable and extensible and is purely object-oriented. Everything in Yii is an independently configurable, reusable, and extensible component.
Jul 18, 2020 am 11:47 AM
What does gii in yii mean?
In Yii, gii is an extension that automatically generates code through gii and leaves some common codes to the program to generate, which greatly reduces the developer's time cost.
Jul 18, 2020 am 11:29 AM
What are the disadvantages of yii2?
Disadvantages of yii2: 1. Less guidance and consideration for the Model layer; 2. Fewer document examples; 3. Too much English; 4. It requires proficiency in PHP technology and proficiency in OOP programming; 5. View is not an ideal view, ideal The view in may only be html code and will not involve PHP code.
Jul 18, 2020 am 11:11 AM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

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

Hot Topics









