Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Url 锚定标记显示以前控制器链接的链接,也显示codeigniter_Url_View_Controller_Codeigniter 2 - Fatal编程技术网

Url 锚定标记显示以前控制器链接的链接,也显示codeigniter

Url 锚定标记显示以前控制器链接的链接,也显示codeigniter,url,view,controller,codeigniter-2,Url,View,Controller,Codeigniter 2,我是codeigniter的初学者,我正在创建一个简单的应用程序来显示待定客户,管理员可以激活它。但当我从视图链接时 echo“未激活” 该链接类似于localhost/ci/index.php/create\u ac/show\u ac\u details/create\u ac/activate\u customer/ 当我的客户从控制器create\u ac的函数show\u ac\u details()显示时,我将在控制器create\u ac的函数activate\u customer

我是codeigniter的初学者,我正在创建一个简单的应用程序来显示待定客户,管理员可以激活它。但当我从视图链接时

echo“未激活”

该链接类似于
localhost/ci/index.php/create\u ac/show\u ac\u details/create\u ac/activate\u customer/

当我的客户从控制器
create\u ac
的函数
show\u ac\u details()
显示时,我将在控制器
create\u ac
的函数
activate\u customer()
中处理客户

我做错什么了?

试试这个

echo 'Not activated.<a href="activate_customer/'.$v->cust_id.'">
Activate Now ? </a>';
我不确定$v->cust\u id变量。你确定这是正确的数据吗。我没有在你的链接中看到它

echo anchor("create_ac/activate_customer/" . $v->cust_id, 'Activate Now ?');