data\ArrayDataProvider sortModels()

sortModels() protected method Sorts the data models according to the given sort definition protected array sortModels ( $models, $sort )$models array The models to be sorted $sort yii\data\Sort The sort definition return array The sorted data models

data\BaseDataProvider prepareModels()

prepareModels() protected abstract method Prepares the data models that will be made available in the current page. protected abstract array prepareModels ( )return array The available data models

debug\models\search\Debug $ajax

$ajax public property Ajax attribute input search value public integer $ajax = null

db\ColumnSchema $enumValues

$enumValues public property Enumerable values. This is set only if the column is declared to be an enumerable type. public array $enumValues = null

Query Builder

Building Queries Query Methods Built on top of Database Access Objects, query builder allows you to construct a SQL query in a programmatic and DBMS-agnostic way. Compared to writing raw SQL statements, using query builder will help you write more readable SQL-related code and generate more secure SQL statements. Using query builder usually involves two steps: Build a yii\db\Query object to represent different parts (e.g. SELECT, FROM) of a SELECT SQL statement. Execute a query method (e.g. a

Internationalization

Locale and Language Message Translation Message Formatting View Translation Formatting Date and Number Values Setting Up PHP Environment Internationalization (I18N) refers to the process of designing a software application so that it can be adapted to various languages and regions without engineering changes. For Web applications, this is of particular importance because the potential users may be worldwide. Yii offers a full spectrum of I18N features that support message translation, view tra

helpers\BaseHtml activeRadioList()

activeRadioList() public static method Generates a list of radio buttons. A radio button list is like a checkbox list, except that it only allows single selection. The selection of the radio buttons is taken from the value of the model attribute. public static string activeRadioList ( $model, $attribute, $items, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $it

grid\GridView initColumns()

initColumns() protected method Creates column objects and initializes them. protected void initColumns ( )

web\Session $allFlashes

$allFlashes public read-only property Flash messages (key => message or key => [message1, message2]). public array getAllFlashes ( $delete = false )

bootstrap\ButtonDropdown $tagName

$tagName public property The tag to use to render the button public string $tagName = 'button'