Welcome Guest, Not a member yet? Register   Sign In
Basic question: how to pass unique identifier with anchor()
#2

[eluser]john_j[/eluser]
The syntax for anchor tag in CI is anchor(uri segments, text, attributes). What ever you pass to the controller can be extracted in the controller method using the syntax $this->uri->segment(n, 'somedefaultvalue'); So, your 'n' will be 3 (we are counting example.com as 0, next as 1 etc) if you had this format for the first argument of anchor(), http://example.com/class/function/ID.


Messages In This Thread
Basic question: how to pass unique identifier with anchor() - by El Forum - 07-16-2012, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB