相关疑难解决方法(0)

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>.';
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传递给它.我只是不知道如何.

谢谢!

php variables config codeigniter

2
推荐指数
1
解决办法
3152
查看次数

标签 统计

codeigniter ×1

config ×1

php ×1

variables ×1