Welcome Guest, Not a member yet? Register   Sign In
URL problem with Matchbox
#1

[eluser]IamPrototype[/eluser]
Hey... Is it me og is it just not possible to enter:

http://domain.com/index.php/support

and see the module 'support' with some kind of default controller.

Right now I'll have to do

http://domain.com/index.php/support/page

to see the page, ('page' is my controller)..

Do I really have to route it?
#2

[eluser]wiredesignz[/eluser]
Try putting a controller named "support" into your support module.
#3

[eluser]IamPrototype[/eluser]
Thanks I'll give it a try.............. otherwise then when I want to do anchors... my links will be support/support/faq? That's not nice... might aswell just route, but I'll give it a try, thanks Smile

** Didn't work Sad
#4

[eluser]wiredesignz[/eluser]
I'm surprised that it doesn't work because it is a fundamental requirement for modules, that if the controller name and module name are identical then only 1 segment is required in the URL.

Please check your work again. Naming conventions are very important.

EDIT:
In your case trying to call a support controller with methods such as faq from a module named support will require routing, my apologies there.

Calling the support controller without additional segments should work as described.
#5

[eluser]IamPrototype[/eluser]
My module is named 'support' and my controller is named 'support'.. ok.. ahhh, I know why.. I forgot to change the class name, sorry and thanks again! Smile

I'll use route for the rest of my sub pages, so they'll look nice too!




Theme © iAndrew 2016 - Forum software by © MyBB