CodeIgniter Forums
Routing and refresh data - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Routing and refresh data (/showthread.php?tid=13014)



Routing and refresh data - El Forum - 11-07-2008

[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