Welcome Guest, Not a member yet? Register   Sign In
Multiple Urls to one default controller
#1

[eluser]Unknown[/eluser]
I have a newbie question here.
I have a website that right now only has two products and I want one controller to handle all requests for the products.
What I need is for http://localhost/eggs/ or http://localhost/bacon to go to the products controller (function index). Then I can return a different product through my model based on $this->uri->segment(1)

I understand how to do it if I were to use this convention http://localhost/products/eggs but I do not want to add that extra uri segment in there.

Thanks,
Stewy


Messages In This Thread
Multiple Urls to one default controller - by El Forum - 03-11-2010, 02:13 PM
Multiple Urls to one default controller - by El Forum - 03-11-2010, 02:56 PM
Multiple Urls to one default controller - by El Forum - 03-11-2010, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB