Welcome Guest, Not a member yet? Register   Sign In
Nooby help again! Controllers
#1

[eluser]mr daniel[/eluser]
Why hullo there.

Would anyone be able to help me quickly?
I have a controller "g" and function "o".

I need these two articles to be hidden when someone uses my site or link!

I would like
Code:
www.domain.com/g/o/dad
to show as
Code:
www.domain.com/dad
.
Is this possible?

I am struggling as I can easily create the route, but then my
Code:
www.domain.com
redirects through to
Code:
www.domain.com/g/o/
as I have
Code:
/g/o
as the controller path Sad
#2

[eluser]skunkbad[/eluser]
[quote author="mr daniel" date="1341897007"]Why hullo there.

Would anyone be able to help me quickly?
I have a controller "g" and function "o".

I need these two articles to be hidden when someone uses my site or link!

I would like
Code:
www.domain.com/g/o/dad
to show as
Code:
www.domain.com/dad
.
Is this possible?

I am struggling as I can easily create the route, but then my
Code:
www.domain.com
redirects through to
Code:
www.domain.com/g/o/
as I have
Code:
/g/o
as the controller path Sad[/quote]

Show your route. Maybe you didn't create it right.
#3

[eluser]mr daniel[/eluser]
so like at the moment I have domain of "http://localhost/domain/g/o/xUvw".
And I've been trying to get that to work as "http://localhost/domain/xUvw"

current routes:
Code:
$route['default_controller'] = "g";




Theme © iAndrew 2016 - Forum software by © MyBB