Best practische models in modules

18 views
Skip to first unread message

ebr...@gmail.com

unread,
Jun 10, 2011, 5:33:40 AM6/10/11
to Zend Framework Developers
Hello,

I am working with modules in Zend Framework:

1: Login module
2: Backend module
3: Frontend module

All the modules have the following folders:
- controllers
- forms
- models
- views

All these module have alot of overlap in the models. So what is the
best pracktische? Move the module map to the application folder
outside the modules or just use the models of the login module also in
the backend module?

Kind regards,

Erwin

Randell

unread,
Jun 10, 2011, 10:11:59 AM6/10/11
to zfdeve...@googlegroups.com
Hello Erwin,

It depends. What are those overlaps in the models that you are referring to?


--
Randell

--
You received this message because you are subscribed to the Google Groups "Zend Framework Developers" group.
To post to this group, send email to zfdeve...@googlegroups.com.
To unsubscribe from this group, send email to zfdevelopers...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zfdevelopers?hl=en.


ebr...@gmail.com

unread,
Jun 13, 2011, 5:06:13 AM6/13/11
to Zend Framework Developers
Hello Randell,

For example the user model. This is used in the default module for
retrieving some login data, but in the backend / frontend module it
could be used to retrieve user data.
Should i keep this model seperate in the each module or should I
somehow use the model in all the controllers?

Erwin

On 10 jun, 16:11, Randell <josephrandell.benavi...@gmail.com> wrote:
> Hello Erwin,
>
> It depends. What are those overlaps in the models that you are referring to?
>
> --
> Randellhttp://twitter.com/_randell
Reply all
Reply to author
Forward
0 new messages