[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.