URL problem with Matchbox |
[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?
[eluser]wiredesignz[/eluser]
Try putting a controller named "support" into your support module.
[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 ** Didn't work
[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.
[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! I'll use route for the rest of my sub pages, so they'll look nice too! |
Welcome Guest, Not a member yet? Register Sign In |