【发布时间】:2009-11-11 19:53:15
【问题描述】:
我有一个语言文件,其中包含用于我的视图文件的一长串字符串。 我的问题是如何将变量或配置项传递给语言文件?
<?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 传递给它。我只是不知道怎么做。
谢谢!
【问题讨论】:
标签: php codeigniter variables config