how i can get a category message in yii ?

hi

how i can get total message source?

example


yii::tArray('app'); #return array

seems no any way not exists.

so i use this way :

php message file:


return [

    'tmp' => [

      'hello' => 'Hello <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />',

    ],

]

yii::t('app','tmp');

can i use this way ? is standard?