Welcome Guest, Not a member yet? Register   Sign In
Best way to check a URL and then load the right content? Example inside...
#3

[eluser]ChrisF79[/eluser]
[quote author="CroNiX" date="1338854807"]$this->uri->segment(3) would give you the segment after "property", or FALSE if it doesn't exist. So, in your "property" method you can check for the value of segment 3 and determine what you need to do from there. No need to make your own functions for that.[/quote]

I was using that segment to see what was in the URL so that does work nicely. I have to extract the set of numbers before the street address since that is the MLS number used for the database so I figured I'd dump it in a function.

Either way though, do I do the if/then in the controller to determine what to load?


Messages In This Thread
Best way to check a URL and then load the right content? Example inside... - by El Forum - 06-04-2012, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB