Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-03-09 16:18:01

miika
Member
From: Finland
Registered: 2010-03-03
Posts: 10

Architecture (?) guestion

Hello,

I was thinking if it is a good thing to put all in modules. I mean that for example if I put stuff, like logins and user management to user module, article management to article module and so on, even if there's only few or only one controller etc in a module. That way I can keep things organized. Now I have many different kinds of controllers in my default module.

What pros and cons there are doing things this way?

Offline

#2 2010-03-10 16:06:38

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: Architecture (?) guestion

modules provide another way of delineating structure in your code. If you only have 1 or 2 controller's per module, you might be over-architecting your application. They aren't required for all applications. As your application grows over time, moving over to a modular structure isn't all that difficult.

Offline

Board footer

Powered by FluxBB