Home > Backend Development > PHP Tutorial > Yii中怎么在模块下应用多语言设置

Yii中怎么在模块下应用多语言设置

WBOY
Release: 2016-06-13 11:44:20
Original
914 people have browsed it

Yii中如何在模块下应用多语言设置
yii支持多语言设置,如果类在/protected/controller下,那么通过Yii::t()函数,可以能容易调用/protected/messages/下的语言文件。
现在,我在/protected/modules/模块名称/controller目录中,需要应用多语言设置,并且把多语言文件放在/protected/modules/模块名称/messages目录下,应该怎么设置?
如何应用?
谁有成功demo可以参考一下?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template