fl00r
fl00r

Reputation: 83680

How to organize MVC structure with big amount of models/controllers

I have got a project with about 50 controllers and 60 models.

It is quite difficult to work in that mess.

How can I improve that scructure?

Now I am creating namespaces for some logical parts of my application and store them in separate folders. But for models this have got some side effects.

Upvotes: 1

Views: 529

Answers (3)

kikito
kikito

Reputation: 52658

You can organize your classes in subfolders - you don't even need to structure them into submodules (but you can if you want to).

See this other question for details.

Upvotes: 2

Hitesh
Hitesh

Reputation: 825

you can refactor your code using namespace.

Upvotes: 0

z-index
z-index

Reputation: 389

Refactoring is a discipline that deals with that kind of problem.

Consider this book.

Upvotes: 0

Related Questions