[eluser]canado[/eluser]
Hello everyone
I have a small problem that I found with charles web debugging
When my site loads it loads 2 times the default controller and then the view corresponding to the uri.
Which means that if I load the home page, in charles web debugging I see
home
home
home
if I load another controller I have
other controller (request start time 20/02/12 8:08:19AM)
home (request start time 20/02/12 8:08:20AM)
home (request start time 20/02/12 8:08:20AM)
Maybe there is something either wrong or something else I must do to avoid loading the correct controller + 2 times the default controller
Here is my routes.php, thanks
Code:
[php]
$route['.*/(products|produits)/(.*)[0-9]+$'] = 'item';
$route['.*/(products|produits)/.*'] = 'products';
$route['default_controller'] = "home";
$route['404_override'] = 'site/site_404';
// URI like '/en/about' -> use controller 'about'
$route['^(en|fr)/(.+)$'] = "$2";
// '/en' and '/fr' URIs -> use default controller
$route['^(en|fr)$'] = $route['default_controller'];
// + routes for multilangue
$route['en/home'] ="home";
$route['fr/accueil'] ="home";
$route['fr/produits'] = "products";
$route['fr/caddy'] ="caddy";
$route['en/caddy'] ="caddy";
[/php]