【Symfony】 messages.ja.xml の値をaction、templateで使用する方法
messages.ja.xml で画面に表示するメッセージを管理したい!という場面は多々あります。
そんなときには、下記の記述で読込むことができます。
○action
sfContext::getInstance()->getI18N()->__('messages.ja.xmlのsourceを指定');
○template
<?php echo __('messages.ja.xmlのsourceを指定') ?>
そんなときには、下記の記述で読込むことができます。
○action
sfContext::getInstance()->getI18N()->__('messages.ja.xmlのsourceを指定');
○template
<?php echo __('messages.ja.xmlのsourceを指定') ?>
コメント
コメントを投稿