i18n\I18N getMessageSource()

getMessageSource() public method

Returns the message source for the given category.

public yii\i18n\MessageSource getMessageSource ( $category )
$category string

The category name.

return yii\i18n\MessageSource

The message source for the given category.

throws yii\base\InvalidConfigException

if there is no message source available for the specified category.

doc_Yii
2016-10-30 17:06:12
Comments
Leave a Comment

Please login to continue.