Application Components

Bootstrapping Components Core Application Components Applications are service locators. They host a set of the so-called application components that provide different services for processing requests. For example, the urlManager component is responsible for routing Web requests to appropriate controllers; the db component provides DB-related services; and so on. Each application component has an ID that uniquely identifies itself among other application components in the same application. You

db\BaseActiveRecord init()

init() public method Initializes the object. This method is called at the end of the constructor. The default implementation will trigger an EVENT_INIT event. If you override this method, make sure you call the parent implementation at the end to ensure triggering of the event. public void init ( )

db\Connection open()

open() public method Establishes a DB connection. It does nothing if a DB connection has already been established. public void open ( )throws yii\db\Exception if connection fails

web\AssetManager setConverter()

setConverter() public method Sets the asset converter. public void setConverter ( $value )$value array|yii\web\AssetConverterInterface The asset converter. This can be either an object implementing the yii\web\AssetConverterInterface, or a configuration array that can be used to create the asset converter object.

elasticsearch\Command getMapping()

getMapping() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html. public mixed getMapping ( $index = '_all', $type = null )$index string $type string

i18n\DbMessageSource $messageTable

$messageTable public property The name of the translated message table. public string $messageTable = '{{%message}}'

jui\DatePicker renderWidget()

renderWidget() protected method Renders the DatePicker widget. protected string renderWidget ( )return string The rendering result.

jui\InputWidget $value

$value public property The input value. public string $value = null

jui\Widget init()

init() public method Initializes the widget. If you override this method, make sure you call the parent implementation first. public void init ( )

mail\BaseMailer generateMessageFileName()

generateMessageFileName() public method public string generateMessageFileName ( )return string The file name for saving the message when $useFileTransport is true.