我需要传递变量$ key_breaf = md5(uniqid());
到语言文件得到这样的网址:
mysite.com/it/logo/2157d31f74c238950686a5ed9ff4b654/
但我收到此错误:错误400
使用国际化(i18n)库
我哪里错了?
提前谢谢
这是我的控制器:(logo.php)
function index() {
$this->load->helper('language');
$this->load->helper('url');
$this->lang->load('general');
$key_breaf = md5(uniqid());
$lang = "it";
// Load the file-and message language
$this->lang->load('general', $lang);
// load the key of the language and the %s placeholder variable $ key_breaf
$url = sprintf($this->lang->line('link.logo.logo'), $key_breaf);
}
这是我的语言文件:(general_lang.php)
$lang['link.logo.logo'] = "it/logo/%s";