Welcome Guest, Not a member yet? Register   Sign In
[delete this, duplicated] [modules] 1 controller for each module? Or many?
#1

[eluser]Buso[/eluser]
Im using matchbox and Im not sure how should I go about this:

In order to have short urls like this:
Code:
mydomain.com/users

I have to have for this case, a module called 'users', a controller called 'users', and the function have to be 'index'

But what happens if I want to use another function?

Say my index function is a login, and now I want a register page.

The user would need to access the module 'users', controller 'users', function 'register'.

But I can't do this:

Code:
mydomain.com/users/register

If I do so, it will try to find a controller called register (and I am looking for the function).

I wouldnt like my users having to use urls like
Code:
mydomain.com/users/users/register

And if I have to make a controller for every function that is gonna be used in a url, that would be too much separation =/ (but maybe that's the way to go about it?)

What do you think?
#2

[eluser]Phil Sturgeon[/eluser]
Why did you start up a second post on this? Can somebody close this one and continue on in the original topic.
#3

[eluser]Buso[/eluser]
[quote author="Phil Sturgeon" date="1258055770"]Why did you start up a second post on this? Can somebody close this one and continue on in the original topic.[/quote]
cause I wrote it yesterday and no one answered, and it was a different question, sry.




Theme © iAndrew 2016 - Forum software by © MyBB