i18n\DbMessageSource init()

init() public method

Initializes the DbMessageSource component.

This method will initialize the $db property to make sure it refers to a valid DB connection. Configured $cache component would also be initialized.

public void init ( )
throws yii\base\InvalidConfigException

if $db is invalid or $cache is invalid.

doc_Yii
2016-10-30 17:05:50
Comments
Leave a Comment

Please login to continue.