开发者

mvc with multilanguage

mvc with multilanguage

the development in MVC, where he is responsible for the translation? in the controller, in the view, or it can be both?

in controller: $view-> translate = array (...)

in view: t开发者_StackOverflow社区ranslate ('word')


language affects functionality or flow of program? no, then in the view.


Unless you want to apply different process based on the language tt could be in Views only. In my programs its in the view only.

hth

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜