How to connect the yii framework to the database

How to connect the yii framework to the database

If the yii framework wants to connect to the database, please make sure you have installed the PHP PDO extension and the PDO driver of the database you are using. This is a basic requirement. Open config/db.php and modify the configuration parameters inside to correspond to your database configuration.

Nov 27, 2019 pm 01:57 PM
yii
The difference between andWhere and andFilterWhere in yii2

The difference between andWhere and andFilterWhere in yii2

andWhere, regardless of whether the query condition parameter is empty or not, the condition will be added. andFilterWhere, when the condition parameter is empty, the condition will be automatically filtered.

Nov 26, 2019 pm 05:17 PM
yii andWhere andFilterWhere
How to query multiple or in andWhere in YII2

How to query multiple or in andWhere in YII2

This article describes how to perform multiple or queries in andWhere in the yii2 framework. I hope it will be helpful to you! Using andWhere to perform multiple or queries in yii2 requires passing in an array.

Nov 26, 2019 pm 05:12 PM
yii2 andWhere or
How to use forms in yii framework

How to use forms in yii framework

To use forms in the Yii framework, you need to create a model to represent the data entered by the user through the form, declare rules to validate the entered data, and generate an HTML form in the view.

Nov 26, 2019 pm 05:09 PM
yii
How to use indexBy() in Yii2

How to use indexBy() in Yii2

In project development, some special values ​​are often used as the index of the array. Generally, the data can be queried first and then the array can be spliced ​​into the required format in a loop. However, the YII2 framework provides a simpler method indexBy(). When you call the all() method, it returns an array indexed by consecutive integer values.

Nov 26, 2019 pm 04:55 PM
yii2 indexby
How to create hello page using yii framework

How to create hello page using yii framework

You need to master three things to create a hello page using the Yii framework: how to create an action to respond to a request, how to create a view to construct response content, and how an application dispatches requests to actions.

Nov 26, 2019 pm 02:44 PM
yii
Detailed introduction to how to install php framework Yii in win7

Detailed introduction to how to install php framework Yii in win7

This article describes how to install the php framework Yii in win7. Share it with everyone for your reference. First download Yii, then use yiic to generate the web directory, and finally configure the path.

Nov 25, 2019 pm 03:24 PM
PHP框架 Yii
Yii is a fast, secure and professional PHP framework

Yii is a fast, secure and professional PHP framework

Yii is a high-performance PHP framework suitable for developing WEB2.0 applications. Yii comes with a rich set of features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc., which can significantly shorten development time.

Nov 25, 2019 pm 03:20 PM
PHP框架
How to run applications in Yii

How to run applications in Yii

During the use of Yii, you can know that after installing Yii, you will have a runnable Yii application. Depending on the configuration, you can use the URL indicated in the tutorial: http://hostname/basic/web/index.php or http:// Hostname/index.php access.

Nov 23, 2019 pm 02:40 PM
Yii
What is the difference between yii and thinkphp?

What is the difference between yii and thinkphp?

Yii and thinkphp are both PHP frameworks, but they are different in configuration. The Yii framework is more flexible with multiple configuration files, overlay configurations, multiple environment configurations, and local and online environment configurations; the thinkphp framework only needs one configuration.

Nov 21, 2019 pm 02:47 PM
yii thinkphp
yii custom error page

yii custom error page

How to customize the error page in yii: first modify the main.php main configuration file and add an errorAction controller to handle errors; then write the error template file in the error.php file; finally modify the controller and render the error page in the actionError method. Can.

Nov 16, 2019 pm 02:55 PM
yii 自定义 错误
What is the difference between yii and tp?

What is the difference between yii and tp?

Yii and tp (ThinkPHP) are both PHP frameworks, but they are different in configuration. The Yii framework is more flexible with multiple configuration files, overlay configurations, multiple environment configurations, and local online environment configurations; the thinkphp framework only needs one configuration.

Nov 16, 2019 am 11:48 AM
yii tp ThinkPHP
What is the event of yii

What is the event of yii

As you can see in the Yii framework tutorial, events are specific execution points where custom code can be "injected" into existing code. Yii introduces a base class named yii\base\Component to support events.

Nov 14, 2019 pm 04:42 PM
yii
what is yii framework

what is yii framework

The yii framework tutorial explains this: Yii is a high-performance PHP framework suitable for developing WEB 2.0 applications. Comes with rich functions, including MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc., significantly shortening development time

Nov 14, 2019 pm 04:00 PM
yii

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

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

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use