Welcome Guest, Not a member yet? Register   Sign In
Custom URL handling (just a little)
#2

[eluser]GSV Sleeper Service[/eluser]
just use the URL segments

say for example you have a default controller called Store

Code:
class Store extends Controller {

    function index($category = false, $type = false, $brand = false) {
        //obviously only run this if $category, $type and $brand have been set
        $q = "SELECT * FROM store WHERE category = '$category' AND type = '$type' AND brand = '$brand'";
    }

}

[edit] see here for more details - http://ellislab.com/codeigniter/user-gui...s/uri.html


Messages In This Thread
Custom URL handling (just a little) - by El Forum - 03-25-2008, 08:19 AM
Custom URL handling (just a little) - by El Forum - 03-25-2008, 08:25 AM
Custom URL handling (just a little) - by El Forum - 03-25-2008, 09:07 AM
Custom URL handling (just a little) - by El Forum - 03-25-2008, 09:25 AM
Custom URL handling (just a little) - by El Forum - 03-25-2008, 01:14 PM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 04:52 AM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 06:55 AM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 07:20 AM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 07:26 AM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 07:49 AM
Custom URL handling (just a little) - by El Forum - 03-29-2008, 08:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB