Yii 2 Migration create BigInt PK

Sometime we need create BigInt PK(Primary) coloum to replace the normal Int PK, in Yii 2.0's Migration tool, you can simple use the follow command to do the work.

Yii2 Form Label Control

Form is very popular in Yii2, this topic show how to control label in Yii 2.0 framework

Yii 2.0 Left Join Search Code Demo

Yii 2.0 Framework Left Join Search Code Demo

Yii 2.0 andFilterWhere null auto ignore

In Yii 2.0's search() function, if try use andFilterWhere and null together, the generated SQL will auto skip the null one, this topic show how to fix it.

Yii 2 Gridview cross-table correlation Search and association sorting

Yii 2 Gridview implement cross-table correlation Search and association sorting

Yii 2.0 Use UrlManage generate front-end URL in backend

In Yii 2.0 Framework, sometime need generate front-end URL in backend, this topic show how to do it.

Yii 2.0 DetailView Set Width Demo Code

In Yii 2.0 DetailView, sometime too long content will break page width, this time need set max-width to limit line width to switch one line to more lines, this topic show how to fix it

Yii 2.0 Use Ajax manage Gridview datatable

Yii 2.0 Use Ajax manage Gridview datatable

Yii2 checkbox list item format

In Yii 2.0 framework, format CheckBoxList's item with follow code

Yii 2.0 GridView Remove Search and Sort Function

When coding with Yii 2.0 framework, GridView is really very powerful, but sometime we need remove Sort and Search functions, the follow code show how to do it.

Yii 2.0 DIY Captcha to custom content

DIY Captcha display content in Yii 2.0, to prevent SPAM. This topic show how to display Add and Sub formula

Do line break and word break in Yii2 GridView

Do line break and word break in Yii2 GridView

Cannot get Wechat POST request in Yii 2.0's Wechat Dev

When dev wechat's normal message accept API, found cannot get any post from wechat server, this topic show how to debug and resolve it.

Yii 2 set Gridview Content horizontal vertical centering

In Yii 2.0 framework, Gridview content align like left and bottom, this topic show how to set Gridview content horizontal and vertical centering

Yii 2.0 use andWhere() Do and or query

In Yii 2.0 Framework, use andWhere() function run DB(MySQL) Query like A = 1 or B = 1

Demo Code for render random color captcha pic in Yii 2.0

Demo Code for render random color captcha pic in Yii 2.0