我有一个语言文件,其中有一长串的字符串用于查看我的文件。 我的问题是如何将变量或配置项传递给语言文件?Codeigniter:语言文件中的变量/配置项
<?php $lang['error_activation_key_expired'] = 'The activation key you have attempted using has expired. Please request a new Activation Key <a href="'.$this->config->item('base_url').'member/request_activation" title="Request a New Activation Key">here</a>.';
我能安定为
<?php $lang['error_activation_key_expired'] = 'The activation key you have attempted using has expired. Please request a new Activation Key <a href="'.$base_url.'member/request_activation" title="Request a New Activation Key">here</a>.';
和BASE_URL某种方式传递给它。我只是不知道如何。
谢谢!
我的BASE_URL多次引用遍及语言文件。重复会有问题吗? – 2009-11-11 20:16:08
不完全确定你的意思。重复在哪里? – Thody 2009-11-11 20:24:10
对不起,nm。 您的解决方案非常完美。谢谢! – 2009-11-11 20:29:19