Load different data depending on URL? |
[eluser]invision[/eluser]
Hi, I have a URL: http://www.site.com/index.php/scotland/glasgow/hotels/ I want to do different things depending on what part of the URL the user is visiting. E.g. if they're on /index.php/scotland/ it'd show different data than when on the full URL above. How do I achieve this with CodeIgniter? On a previous thread, I got as far as the following...but it didn't work I tried to take in the three different parts of the URLs as parameters ($param_1 etc...) Controller: Code: function index($param_1 = FALSE, $param_2 = FALSE, $param_3 = FALSE) { - - For reference my Model is: Code: <?php I would massively appreciate any guidance with this. Many thanks. |
Messages In This Thread |
Load different data depending on URL? - by El Forum - 10-23-2010, 09:35 AM
Load different data depending on URL? - by El Forum - 10-23-2010, 10:40 AM
Load different data depending on URL? - by El Forum - 10-23-2010, 10:41 AM
Load different data depending on URL? - by El Forum - 10-23-2010, 10:47 AM
Load different data depending on URL? - by El Forum - 10-23-2010, 10:51 AM
Load different data depending on URL? - by El Forum - 10-23-2010, 12:51 PM
Load different data depending on URL? - by El Forum - 10-23-2010, 01:13 PM
Load different data depending on URL? - by El Forum - 10-23-2010, 02:40 PM
Load different data depending on URL? - by El Forum - 10-23-2010, 03:20 PM
Load different data depending on URL? - by El Forum - 10-23-2010, 08:46 PM
Load different data depending on URL? - by El Forum - 10-24-2010, 01:21 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 01:28 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 01:41 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 01:52 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 02:12 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 04:04 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 04:45 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 04:48 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 04:50 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:03 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:04 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:05 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:06 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:09 AM
Load different data depending on URL? - by El Forum - 10-24-2010, 05:13 AM
|