1
言語ファイルはすべてセットアップしてあり、プレーンテキストの場合はすべてが素晴らしいです。しかし、そのプレーンテキストでは、私はリンクを希望します。ここで言語ファイル内のPHP? Codegintier
は私のコントローラ
function home()
{
$data['masthead'] = '/includes/masthead';
$data['content'] = '/includes/content_3_col_box';
$this->lang->load('en', 'english');
$data['text1'] = $this->lang->line('home1');
$data['text2'] = $this->lang->line('home2');
$data['text3'] = $this->lang->line('home3');
$this->load->view('includes/template', $data);
}
ですこれはこれは、質問
$lang['home1'] = "Introducing the most comprehensive protection plan in the industry <br /><br /> . echo anchor('controller/function', 'Text')";
の私の言語ファイルの行である動的言語に
<div class="content grid_24">
<div class="grid_7 firstboxthree alpha column">
<?php
echo $text1;
?>
</div>
<div class="grid_7 midboxthree column">
<?php
echo $text2;
?>
</div>
<div class="grid_7 lastboxthree omega column">
<?php
echo $text3;
?>
</div>
を提供しています私の見解である
HTMLマークアップはうまくいくようですが、echo anchor( 'controller/function'、 'Text')の形式でcodeigniterリンクを渡すにはどうしたらいいですか?今、それはだけではなく、PHP/HTML CodeIgniterの生成リンク
ファンタスティックをお試しください!それは私が逃したものです – JonYork
また、このライブラリを見たいかもしれません:http://codeigniter.com/wiki/i18n_Multi-language_Library_Helper – stealthyninja