문제

I have a project with a few Yii-applications in it. And i want to use one messages (translate) file for some applications, how can i change config file?

도움이 되었습니까?

해결책

Path to messages folder is defined by basePath property of CGetTextMessageSource in Yii. Default value for this property is "protected/messages". It can be changed by putting something like following in your main.php config file:

components' => array(
    'messages'=>array('basePath'=>'yourPath'),
),

다른 팁

You should read this Special Topic on Internationalization: http://www.yiiframework.com/doc/guide/1.1/en/topics.i18n

Have a look at this for configuration options: http://www.yiiframework.com/wiki/59/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top