我有一个codeigniter 2.2.6与最新的URI语言标识符和坦克auth安装问题是在我的情况下切换到非默认语言: “How to invoke webservice from SQL Server stored procedure”并继续注册成功发送的电子邮件,但是当我点击“http://www.mywebsite.hu/en”之类的激活链接时,我会收到“您输入的激活码不正确或已过期”。错误信息。
然后,如果我在浏览器中清除mywebsite.hu的相应cookie,则激活成功完成。我不知道为什么......
在codeigniter config.php中
$config['language'] = "hungarian";
/* default language abbreviation */
$config['language_abbr'] = "hu";
/* set available language abbreviations */
$config['lang_uri_abbr'] = array("en" => "english");
/* hide the language segment (use cookie) */
$config['lang_ignore'] = TRUE;
答案 0 :(得分:0)
好了,我现在修改了控制器auth.php激活功能
来自:
$user_id = $this->uri->segment(1);
$new_email_key = $this->uri->segment(2);
到此:
String query = "insert into course_data values(null," + CourseName + ","
+ SCrsDesrpTemp + "," + CrsDes + "," + crsurl + ","
+ youtube + "," + sqlStrDate + "," + crsduration + ","
+ CrsImg + "," + "'Open2Study', 'Free', 'English', 'Yes'," + CrsImgUni + date + ")";
现在工作正常!