db\QueryBuilder alterColumn()

alterColumn() public method Builds a SQL statement for changing the definition of a column. public string alterColumn ( $table, $column, $type )$table string The table whose column is to be changed. The table name will be properly quoted by the method. $column string The name of the column to be changed. The name will be properly quoted by the method. $type string The new column type. The getColumnType() method will be invoked to convert abstract column type (if any) into the physica

i18n\Formatter $decimalSeparator

$decimalSeparator public property The character displayed as the decimal point when formatting a number. If not set, the decimal separator corresponding to $locale will be used. If PHP intl extension is not available, the default value is '.'. public string $decimalSeparator = null

web\UrlNormalizer $collapseSlashes

$collapseSlashes public property Whether slashes should be collapsed, for example site///index will be converted into site/index public boolean $collapseSlashes = true

mail\BaseMailer EVENT_BEFORE_SEND

EVENT_BEFORE_SEND event of type yii\mail\MailEvent An event raised right before send. You may set yii\mail\MailEvent::$isValid to be false to cancel the send.

console\controllers\AssetController getAssetManager()

getAssetManager() public method Returns the asset manager instance. public yii\web\AssetManager getAssetManager ( )return yii\web\AssetManager Asset manager instance. throws yii\console\Exception on invalid configuration.

log\EmailTarget init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

web\Response init()

init() public method Initializes this component. public void init ( )

debug\panels\RequestPanel $detail

$detail public read-only property Content that is displayed in debugger detail view public string getDetail ( )

log\FileTarget $maxFileSize

$maxFileSize public property Maximum log file size, in kilo-bytes. Defaults to 10240, meaning 10MB. public integer $maxFileSize = 10240

Dependency Injection Container

Dependency Injection Registering Dependencies Resolving Dependencies Practical Usage When to Register Dependencies Summary A dependency injection (DI) container is an object that knows how to instantiate and configure objects and all their dependent objects. Martin Fowler's article has well explained why DI container is useful. Here we will mainly explain the usage of the DI container provided by Yii. Dependency Injection Yii provides the DI container feature through the class yii\di\Contain