Welcome Guest, Not a member yet? Register   Sign In
anchor; get method; ?
#4

[eluser]Samus[/eluser]
[quote author="PankajBalani" date="1337418772"]
So my question should be how to send some info to controller when user clicks a link.

url looks like "www...../lb/test" [/quote]

Have your controller accept a parameter.

If you have a controller like this:

Code:
Controller extends CI_Controller {

function test($param)
echo $param;
}

Then your url looks like this:

www.site.com/controller/test/samus

if I entered that url, the controller will echo 'samus'.


Messages In This Thread
anchor; get method; ? - by El Forum - 05-19-2012, 01:24 AM
anchor; get method; ? - by El Forum - 05-19-2012, 02:02 AM
anchor; get method; ? - by El Forum - 05-19-2012, 02:12 AM
anchor; get method; ? - by El Forum - 05-19-2012, 02:18 AM
anchor; get method; ? - by El Forum - 05-19-2012, 02:29 AM
anchor; get method; ? - by El Forum - 05-19-2012, 02:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB