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 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 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.

Normal Position flags in Yii 2.0's View

In Yii 2.0's View, we have 5 flags for position, it's beginPage, head(), beginBody(), endBody(), endPage(). This topic show how to use it correct in view file, if not use it correct, may cost js or css file or code can't register correct

Yii 2.0 registerCssFile cannot register css file correct

In Yii 2.0 Framework's view,cannot use $this->registerCssFile() to register css file, this topic show how to fix this problem

Yii 1.0 run different action in view

Yii 1.0 framework run special action in view layer