when should i use multiple controllers in mvc?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-13T02:44:23Z Indexed on 2010/04/13 2:53 UTC
Read the original article Hit count: 419

Filed under:
|

are there times you might want to use multiple controllers in mvc?

eg.

/controllers/foo.php /controllers/bar.php

or

/controllers/foo/baz1.php /controllers/foo/baz2.php

/controllers/bar/baz1.php /controllers/bar/baz2.php

could someone give some examples WHEN i might want to do that and some example controller names.

one occasion i thought about might be when you got a main site (for users) and a admin site (for customers).

all feedbacks and suggestions are appreciated

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc