widgets\ActiveFormAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'

grid\GridView $showHeader

$showHeader public property Whether to show the header section of the grid table. public boolean $showHeader = true

Creating your own Application structure

Clone the Basic Template Modify the Files Make a Package Use the Template Note: This section is under development. While the basic and advanced project templates are great for most of your needs, you may want to create your own project template with which to start your projects. Project templates in Yii are simply repositories containing a composer.json file, and registered as a Composer package. Any repository can be identified as a Composer package, making it installable via create-project

filters\HttpCache $enabled

$enabled public property A value indicating whether this filter should be enabled. public boolean $enabled = true

web\Request $serverName

$serverName public read-only property Server name, null if not available public string getServerName ( )

db\Schema createColumnSchemaBuilder()

createColumnSchemaBuilder() public method (available since version 2.0.6) Create a column schema builder instance giving the type and value precision. This method may be overridden by child classes to create a DBMS-specific column schema builder. public yii\db\ColumnSchemaBuilder createColumnSchemaBuilder ( $type, $length = null )$type string Type of the column. See yii\db\ColumnSchemaBuilder::$type. $length integer|string|array Length or precision of the column. See yii\db\ColumnSch

mongodb\rbac\MongoDbManager $assignmentCollection

$assignmentCollection public property The name of the collection storing authorization item assignments. Defaults to "auth_assignment". public string|array $assignmentCollection = 'auth_assignment'

Aliases

Defining Aliases Resolving Aliases Using Aliases Predefined Aliases Extension Aliases Aliases are used to represent file paths or URLs so that you don't have to hard-code absolute paths or URLs in your project. An alias must start with the @ character to be differentiated from normal file paths and URLs. Alias defined without leading @ will be prefixed with @ character. Yii has many pre-defined aliases already available. For example, the alias @yii represents the installation path of the Yii f

behaviors\AttributeTypecastBehavior beforeSave()

beforeSave() public method Handles owner 'afterInsert' and 'afterUpdate' events, ensuring attribute typecasting. public void beforeSave ( $event )$event yii\base\Event Event instance.

mongodb\Collection mapReduce()

mapReduce() public method Performs aggregation using MongoDB "map-reduce" mechanism. Note: this function will not return the aggregation result, instead it will write it inside the another Mongo collection specified by "out" parameter. For example: $customerCollection = Yii::$app->mongo->getCollection('customer'); $resultCollectionName = $customerCollection->mapReduce( 'function () {emit(this.status, this.amount)}', 'function (key, values) {return Array.sum(values)}', '