Welcome Guest, Not a member yet? Register   Sign In
Method segment
#1

[eluser]Unknown[/eluser]
Hi,

I've a simple method in a controller called "show":

Code:
function show(){

      $mail = $this->uri->segment(4);
      echo $mail;

   }

The thing is that when I go to ...website.com/controller/show/mail/[email protected]

It returns : example@domain_com

when I wait for : example@domain.com

What's the problem ? Thank you very much, see you.
#2

[eluser]CI Coder[/eluser]
[quote author="Zhicso" date="1287963553"]Hi,

I've a simple method in a controller called "show":

Code:
function show(){

      $mail = $this->uri->segment(4);
      echo $mail;

   }

The thing is that when I go to ...website.com/controller/show/mail/[email protected]

It returns : example@domain_com

when I wait for : example@domain.com

What's the problem ? Thank you very much, see you.[/quote]

read this:

http://sholsinger.com/archive/2009/04/pa...deigniter/

read from "{edit 2009-08-22}" down. I hope that helps
#3

[eluser]Unknown[/eluser]
Thank you so much, you helped me.

It works now. I changed the config parameter uri_protocol from AUTO to QUERY_STRING and it goes fine.




Theme © iAndrew 2016 - Forum software by © MyBB