debug\panels\RequestPanel $detail

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

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

log\FileTarget $maxFileSize

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

authclient\BaseClient $viewOptions

$viewOptions public property View options in format: optionName => optionValue public array getViewOptions ( )public void setViewOptions ( $viewOptions )

Yii

All Classes | Properties | Methods Inheritance Yii » yii\BaseYii Available since version 2.0 Source Code https://github.com/yiisoft/yii2/blob/master/framework/Yii.php Yii is a helper class serving common framework functionalities. It extends from yii\BaseYii which provides the actual implementation. By writing your own Yii class, you can customize some functionalities of yii\BaseYii. Public Properties Property Type Description Defined By $aliases array Registered path aliases yii\BaseYi

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.

caching\ChainedDependency getHasChanged()

getHasChanged() public method Performs the actual dependency checking. This method returns true if any of the dependency objects reports a dependency change. public boolean getHasChanged ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return boolean Whether the dependency is changed or not.

gii\controllers\DefaultController actionPreview()

actionPreview() public method public void actionPreview ( $id, $file )$id $file

grid\GridView init()

init() public method Initializes the grid view. This method will initialize required property values and instantiate $columns objects. public void init ( )

Fragment Caching

Caching Options Nested Caching Dynamic Content Fragment caching refers to caching a fragment of a Web page. For example, if a page displays a summary of yearly sale in a table, you can store this table in cache to eliminate the time needed to generate this table for each request. Fragment caching is built on top of data caching. To use fragment caching, use the following construct in a view: if ($this->beginCache($id)) { // ... generate content here ... $this->endCache(); } Th