CodeIgniter Forums
Can't get this URI to work... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Can't get this URI to work... (/showthread.php?tid=26665)



Can't get this URI to work... - El Forum - 01-20-2010

[eluser]tommo.wilson[/eluser]
Hi there,

I have a controller named "cms" in the "controllers/admin" folder

The index function in the cms controller requires the parameter $pageid

When I call this URL...

example.com/index.php/admin/cms/index/1

I get the error message...

Unable to load the requested file: 1.php

But according to the user_guide it should be treating the "1" as a parameter. See below.

example.com/class/function/ID

Instead it seems to be trying to load a page named 1.php

Any idea's why I'm getting this error?

Thanks
Tom


Can't get this URI to work... - El Forum - 01-20-2010

[eluser]Colin Williams[/eluser]
Any routing happening? Do the URIs for /admin/cms and /admin/cms/index work? Any custom mods to the Router class at all?


Can't get this URI to work... - El Forum - 01-20-2010

[eluser]tommo.wilson[/eluser]
Hey sorry for the hassle.

I don't even know what I did but it's working now.

Weird. Brain fart!