Welcome Guest, Not a member yet? Register   Sign In
get values from url
#1

[eluser]rochellecanale[/eluser]
Hey guys i have a simple problem here. My problem is how can i get a values from my URL? Let's say I have a URL like this: localhost/MyPage/index.php/MyController/MyMethod/MyValues

How can i get the values of MyValues?
I need it because I want to get a values from my anchor popup. Hope you can help me guys. Thanks.
#2

[eluser]Otemu[/eluser]
Hi,

You can get the url using the URI Class, to get MyValues you can just use this:
Code:
$this->uri->segment(3)

#3

[eluser]Aken[/eluser]
Values are also passed as parameters to your method. Read the user guide about how CI's URLs work.




Theme © iAndrew 2016 - Forum software by © MyBB