Welcome Guest, Not a member yet? Register   Sign In
Can't get this URI to work...
#1

[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
#2

[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?
#3

[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!




Theme © iAndrew 2016 - Forum software by © MyBB