我有一个语言文件,其中包含一长串字符串供我的视图文件使用.我的问题是如何将变量或配置项传递给语言文件?
<?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>.';
Run Code Online (Sandbox Code Playgroud)
我愿意接受
<?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>.';
Run Code Online (Sandbox Code Playgroud)
并以某种方式将base_url传递给它.我只是不知道如何.
谢谢!