Welcome Guest, Not a member yet? Register   Sign In
url parameter: cannot pass url as parameter to codeigniter methods
#1

[eluser]sandeep nami[/eluser]
Hello guys,
I got a situation where i have to pass url to a controller method from views



controller function - parse_xmlfeed ($url)

url- http://202.63.102.83:8080/chandler/atom/...t=e8d4e840


i am calling this method like this

http://localhost/codeigniter/parse_xmlfeed/url

the error iam getting is 404 error (file not found)
i hope u understood
#2

[eluser]rogierb[/eluser]
Can you access the page via http://localhost/codeigniter/parse_xmlfeed/? (without url)

If you can, you might want to encode the url you pass.
#3

[eluser]danmontgomery[/eluser]
You need to use urlencode()

http://php.net/manual/en/function.urlencode.php
#4

[eluser]sandeep nami[/eluser]
thanks for the reply..
I have sorted out the issue.
Now I am able to send the url directly via 'post'




Theme © iAndrew 2016 - Forum software by © MyBB