how do I know which link has been clicked on web page? - CI newbie Q |
[eluser]WanWizard[/eluser]
The basic structure of a CI URL is: http://www.yourwebsite/controllername/me...r2/value2/ ... So the first two segments determine the controller to load, and the method within that controller to call. You don't have to make a new combination for every function, if it's possisble (from a functional or design point of view) to group things in a single method, why not? You can easy convert your example to: Code: <ul> Code: array( 'link' => '1') In a more complex case, you can use URI routing (see the manual) to consolidate URI requests (view this as a sort of rewriting of the URI), so you can use p.e. one single controller that handles all static HTML pages. For example, if you have a controller called 'static_html', with a method 'render' that loads the view(s) and displays it, you can create a route that converts Code: http://www.example.com/about/company Code: http://www.example.com/static_html/render/about/company |
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
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 03:24 AM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 07:25 AM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 08:33 AM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 11:17 AM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 04:29 PM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-25-2010, 11:13 PM
how do I know which link has been clicked on web page? - CI newbie Q - by El Forum - 06-26-2010, 02:29 AM
|