Welcome Guest, Not a member yet? Register   Sign In
Routing and refresh data
#1

[eluser]Unknown[/eluser]
Hi,

at first, I would like to apologize for my english. I am new to CI and I encounter a problem when i develop small web site. I use routing for show items from category and subcategory. Like that...

Code:
$route['instruments/(:any)/(:any)/(:any)'] = "instruments/produkt_detail/$1/$2/$3";
$route['instruments/(:any)/(:any)'] = "instruments/model/$1/$2";
$route['instruments/(:any)'] = "instruments/category/$1";

I do it like this, because i want to have url for example like this "http://example.com/instruments/guitar/classic/1-classic-vocal".

And now where is the problem. It is working fine, but when I change data (insert new product to database), it shows new inserted data after 2 or 3 refresh, and I must do refresh in every category or subcategory separately.

Can you help me?? any suggestion??
I hope that's clear and you understand my english :-)

Thank you




Theme © iAndrew 2016 - Forum software by © MyBB