widgets\Breadcrumbs $encodeLabels

$encodeLabels public property Whether to HTML-encode the link labels. public boolean $encodeLabels = true

widgets\Breadcrumbs $tag

$tag public property The name of the breadcrumb container tag. public string $tag = 'ul'

base\Application $loadedModules

$loadedModules public property List of loaded modules indexed by their class names. public array $loadedModules = []

Database Migration

Creating Migrations Generating Migrations Applying Migrations Reverting Migrations Redoing Migrations Listing Migrations Modifying Migration History Customizing Migrations Migrating Multiple Databases During the course of developing and maintaining a database-driven application, the structure of the database being used evolves just like the source code does. For example, during the development of an application, a new table may be found necessary; after the application is deployed to productio

Controllers

Creating Controller Classes Filters Extending ActiveController After creating the resource classes and specifying how resource data should be formatted, the next thing to do is to create controller actions to expose the resources to end users through RESTful APIs. Yii provides two base controller classes to simplify your work of creating RESTful actions: yii\rest\Controller and yii\rest\ActiveController. The difference between these two controllers is that the latter provides a default set of

web\Request $csrfToken

$csrfToken public read-only property The token used to perform CSRF validation. public string getCsrfToken ( $regenerate = false )

helpers\BaseInflector id2camel()

id2camel() public static method Converts an ID into a CamelCase name. Words in the ID separated by $separator (defaults to '-') will be concatenated into a CamelCase name. For example, 'post-tag' is converted to 'PostTag'. public static string id2camel ( $id, $separator = '-' )$id string The ID to be converted $separator string The character used to separate the words in the ID return string The resulting CamelCase name

gii\controllers\DefaultController $layout

$layout public property public $layout = 'generator'

gii\generators\extension\Generator $type

$type public property public $type = "yii2-extension"

web\Request getUserIP()

getUserIP() public method Returns the user IP address. public string|null getUserIP ( )return string|null User IP address, null if not available