Hi everyone,

I've faced with a Module-Controller naming conflict. Suppose:

1
==========================
I have two modules: "default" and "Foo".
I have a "Foo" controller in "default" module.
I have an "Index" controller in "Foo" module.

URL: Foo/ => This calls Foo_IndexController::indexAction()
URL: foo/ => This calls [Default's] FooController::indexAction()
 2
==========================
I have two modules: "default" and "foo" (Note the lowercased foo)
I have a "Foo" controller in "default" module.
I have an "Index" controller in "foo" module.

URL: Foo/ => This calls [Default's] FooController::indexAction()
URL: foo/ => This calls Foo_IndexController::indexAction()
==========================
Is there any naming principle to prevent these confusions.
Not only this could cause the developer to confuse,
but there is a high risk for users to mis-spell a URL and
visit an incorrect page.

Thanks in advance,
Behzad

Reply via email to