Welcome Guest, Not a member yet? Register   Sign In
how do I know which link has been clicked on web page? - CI newbie Q
#1

[eluser]Brian Dickson[/eluser]
As I'm learning CI / MVC OOP, I thought i'd learn how to replace my old procedural way of working at a simple level, before moving on to building applications proper.

If I have a simple web page with say 5 links in a list for navigation, from what I've read in the CI documentation I would have a method for every link, which in a real life situation is probably unrealistic, and I'm sure nobody does it that way.

so if I have this example menu on a page, what do I put in my controller and how do I know which link has been clicked?
Code:
<ul>
<li>link 1</li>
<li>link 2</li>
<li>link 3</li>
<li>link 4</li>
<li>link 4</li>
</ul>

I presumably wouldn't want to have a URI like: http://www.mysite/pageid=36 - for security reasons?

Apologies if this is too noobie, I'm just trying to find my feet, and maybe the answer is soo obvious I can't see it right under my nose.


Messages In This Thread
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 01:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB