Welcome Guest, Not a member yet? Register   Sign In
Help with a simple route
#2

[eluser]marcogmonteiro[/eluser]
[quote author="Uplift" date="1340278596"]Hi,

I'm having trouble getting a route to work.

for domain.com/offers/category

category is the segment that changes, depending on whats been clicked.

This is simple with:

Code:
$route['offers/:any'] = 'pages/view/show-category';

The user an click on an item within that category and i'm struggling to do the route for this.

the uri is something like domain.com/offers/category/item-name

I'm sure it's easily done i just haven't worked it out.
[/quote]

try
Code:
$route['offers/(:any)'] = 'pages/view/$1';

or try
Code:
$route['offers/(:any)'] = 'pages/view/show-category/$1';

I don't know if you have some subfolders in your controllers folder.


Messages In This Thread
Help with a simple route - by El Forum - 06-21-2012, 04:36 AM
Help with a simple route - by El Forum - 06-21-2012, 04:38 AM
Help with a simple route - by El Forum - 06-21-2012, 05:42 AM
Help with a simple route - by El Forum - 06-21-2012, 10:06 AM
Help with a simple route - by El Forum - 06-21-2012, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB