Welcome Guest, Not a member yet? Register   Sign In
passing id to link?
#4

[eluser]slothdog[/eluser]
[quote author="manilodisan" date="1224711998"]
Code:
$data['query'] = $this->registrationmodel->delete_by_pkey($this->uri->segment(3));

I've put uri segment 3. You should put there whatever corresponds to the id of your item.

And the link:

Code:
<a href="&lt;?= site_url ( 'controller/method/' . $id ) ?&gt;">click</a>
[/quote]

i tired that using the anchor() and it sent it to a function in the class with the number that didnt exist so i got a 404 error. is there a difference between using <a > and using the anchor() to make a link?


Messages In This Thread
passing id to link? - by El Forum - 10-22-2008, 10:34 AM
passing id to link? - by El Forum - 10-22-2008, 10:46 AM
passing id to link? - by El Forum - 10-22-2008, 11:01 AM
passing id to link? - by El Forum - 10-22-2008, 05:32 PM
passing id to link? - by El Forum - 10-23-2008, 03:11 AM
passing id to link? - by El Forum - 10-23-2008, 07:44 AM
passing id to link? - by El Forum - 10-23-2008, 10:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB