[ alfa-pro @ 04.06.2012. 18:44 ] @
Moze neko da mi objasni gde gresim? Hocu da redirektujem se na sledecu stranu ako je uri segment(2) == index.php. Znaci samo da me redirektuje na default controller. Sve sam ja to sredio i uradio funkciju za redirekciju ali dobijam sledecu gresku u mozili kada refreshujem. The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies. Pozivanje funkcije je redirect('controller','method') Code: redirect('forum','dashboard'); Funkcija Code: if ( ! function_exists('redirect')) { function redirect($controller, $action='index') { if(isset($controller)){ require_once CONFIGPATH.'config'.EXT; return header( "Location:".site_url()."?controller=".$controller.'&action='.$action.""); } } } site_url() je = 'localhost/testFW/index.php' |