using routing on codeigniter |
[eluser]gordon Stewart[/eluser]
hello, I am trying to adjust /application/config/routes.php so I can have flexible URL's what I'm after, is to have a URL of http://domain.com/maps/ http://domain.com/maps/region_name_1 http://domain.com/maps/region_name_2 etc... I have application/controllers/maps.php and application/models/maps_model.php routes.php >> i have this line :- $route['maps/(:any)'] = "maps/maps_model/$1"; is that above correct ? when I put in my url maps/region_name or maps/region I get a 404 error EDIT:- from my logs, I see :- ERROR - 2010-05-15 03:41:40 --> 404 Page Not Found --> maps/maps_model is maps_model in a subdirectory of my controllers directory ???? or should it be in my 'models' directory ? |
Messages In This Thread |
using routing on codeigniter - by El Forum - 05-14-2010, 08:34 PM
using routing on codeigniter - by El Forum - 05-14-2010, 11:29 PM
using routing on codeigniter - by El Forum - 05-15-2010, 02:46 AM
using routing on codeigniter - by El Forum - 05-15-2010, 03:08 AM
using routing on codeigniter - by El Forum - 05-15-2010, 03:12 AM
using routing on codeigniter - by El Forum - 05-15-2010, 03:54 AM
using routing on codeigniter - by El Forum - 05-17-2010, 02:51 AM
using routing on codeigniter - by El Forum - 05-17-2010, 03:44 AM
using routing on codeigniter - by El Forum - 05-17-2010, 05:13 AM
|