如何在codeigniter中的URI段2之后选择全部? [英] How to select all after URI segment 2 in codeigniter?

查看:84
本文介绍了如何在codeigniter中的URI段2之后选择全部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对一些数据进行了编码,并将其作为$this->uri->segment(2)通过url发送,并且编码后的字符串包含"/"和其他符号.由于这些"/"号,我无法选择完整的URI段. 我的主要问题是,如何在控制器中选择URI段1之后的所有内容?

I encoded some data and sent it through url as $this->uri->segment(2) and encoded string contains '/' and other symbols. I can not select full URI segment because of those '/' signs. My main question is, how to select in controller everything after URI segment 1?

$enc_session_email = $this->encrypt->encode($this->session->userdata('email'));

我得到了网址结果:

http://localhost/ci/new-affilate/YWwfV9KJrOiY+J08WUcufZkmKbW5ST7wTp+bofnRP35bv/gzvA+5fYo7J6jDCvt0NwzMiEFdU2r3+a8+scqLTA==

如何在控制器中获得新的关联后全部获得?

How to get all after new-affilate in controller?

推荐答案

您必须这样设置网址:

http://localhost/ci/new-affilate?enc_session_email=$enc_session_email

然后像这样得到它:

$enc_session_email = $this->input->get('enc_session_email', TRUE);

这篇关于如何在codeigniter中的URI段2之后选择全部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆