How to remove "main" from current_url()? |
[eluser]Radiart[/eluser]
[quote author="Madmartigan1" date="1293682742"]That's strange. Which bits of that url are directories and which bits are controllers methods and params? Can you explain the url a bit? Can you post your routes.php?[/quote] URL http://localhost/break/news/27501 http://localhost - Everything I testing on local machine I use EasyPHP 5.3.3 break - main folder where I have aplication and system folders news - function in class preview 27501 - id ROUTES $route['default_controller'] = "preview/index"; $route['scaffolding_trigger'] = ''; /* PORTAL */ $route['logowanie'] = "portal/logowanie"; $route['rejestracja'] = "portal/rejestracja"; $route['logout'] = "portal/logout"; ... /* LIST */ $route['polecamy'] = "lista/polecamy"; $route['polecamy/(:any)'] = "lista/polecamy/$1"; $route['newsy'] = "lista/newsy"; $route['newsy/(:any)'] = "lista/newsy/$1"; ... /* PREVIEW */ $route['news/(:any)'] = "preview/news/$1"; $route['wydarzenie/(:any)'] = "preview/wydarzenie/$1"; $route['artykul/(:any)'] = "preview/artykul/$1"; ... /* PANEL */ $route['panel'] = "panel/index"; $route['panel/partnerzy'] = "panel/partnerzy"; $route['panel/edycja/partnera'] = "panel/edycja_partnera"; $route['panel/update/partnera'] = "panel/update_content"; $route['panel/strony'] = "panel/strony"; ... $route['(.*)'] = "preview/page/$1" |
Messages In This Thread |
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 09:29 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 09:40 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 11:13 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:01 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:05 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:15 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:19 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:31 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:42 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 05:04 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 05:06 PM
|