data\ActiveDataProvider init()

init() public method Initializes the DB connection component. This method will initialize the $db property to make sure it refers to a valid DB connection. public void init ( )throws yii\base\InvalidConfigException if $db is invalid.

base\Module getModule()

getModule() public method Retrieves the child module of the specified ID. This method supports retrieving both child modules and grand child modules. See also hasModule(). public yii\base\Module|null getModule ( $id, $load = true )$id string Module ID (case-sensitive). To retrieve grand child modules, use ID path relative to this module (e.g. admin/content). $load boolean Whether to load the module if it is not yet loaded. return yii\base\Module|null The module instance, null if th

base\Module $basePath

$basePath public property The root directory of the module. public string getBasePath ( )public void setBasePath ( $path )

gii\Generator $enableI18N

$enableI18N public property Whether the strings will be generated using Yii::t() or normal strings. public boolean $enableI18N = false

db\Schema setTransactionIsolationLevel()

setTransactionIsolationLevel() public method Sets the isolation level of the current transaction. See also http://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels. public void setTransactionIsolationLevel ( $level )$level string The transaction isolation level to use for this transaction. This can be one of yii\db\Transaction::READ_UNCOMMITTED, yii\db\Transaction::READ_COMMITTED, yii\db\Transaction::REPEATABLE_READ and yii\db\Transaction::SERIALIZABLE but also a string

Widgets

Using Widgets Creating Widgets Best Practices Widgets are reusable building blocks used in views to create complex and configurable user interface elements in an object-oriented fashion. For example, a date picker widget may generate a fancy date picker that allows users to pick a date as their input. All you need to do is just to insert the code in a view like the following: <?php use yii\jui\DatePicker; ?> <?= DatePicker::widget(['name' => 'date']) ?> There are a good number

web\ErrorHandler $maxSourceLines

$maxSourceLines public property Maximum number of source code lines to be displayed. Defaults to 19. public integer $maxSourceLines = 19

db\Schema $exceptionMap

$exceptionMap public property Map of DB errors and corresponding exceptions If left part is found in DB error message exception class from the right part is used. public array $exceptionMap = ['SQLSTATE[23' => 'yii\db\IntegrityException']

debug\LogTarget getSqlTotalCount()

getSqlTotalCount() protected method Returns total sql count executed in current request. If database panel is not configured returns 0. protected integer getSqlTotalCount ( )

web\AssetManager $basePath

$basePath public property The root directory storing the published asset files. public string $basePath = '@webroot/assets'