> Hello everyone,
> as you know, Zend Framework 2.0 is having a major rewrite in some parts and
> a lot things can be arranged to make development easier/more flexible/etc.
> After discussing this with Matthew, I'm asking you to:
> Write in short, how do you use Zend Framework
> What interests us is how you work with modules (blog, products, news,
> users), how you divide your applications in to parts (admin, public,
> something else) and how other parts of code (acl, configuration, resources)
> comes into play here.
> The reason why I'm asking this, is because I'm using Zend Framework for
> quote big applications and for me it's important to have ability to create
> application with self-contained modules and sub-applications. For example I
> have e-commerce products having admin, public and supplier sub-applications,
> but everything is still nicely divided into modules (products, warehouse,
> orders, customers etc.) and App_Application and FrontController plugins does
> some work to make one application code to be divided in these parts.
> However, I know that some people use applications completely based on acl -
> there is one site and only depending on what your permissions are, you see
> data, can edit or delete if you want to. Here again somewhat different
> structure comes into play. Also quite popular thing to do is to have
> admin/default modules. Even though I completely don't understand this
> approach, some people like it and use everyday, hence it should also be
> possible to use.
> So please write what you think about such things, I will try to read them
> all, generalize into a comparison table and make it into a proposal of what
> functions from core are needed to support it (without any hacking, which I
> done quite a lot)
> --
> Juozas Kaziukėnas (juozas@juokaz.com)
> Aš internete - JuoKaz (http://www.juokaz.com)
>
I try to keep as much as possible in the domain layer, using modules
to namespace/package the domain. This does not really mean you have
fully "self-contained" modules but helps with a onion based
architecture.
For admin functions I use a pseudo admin module so that the logic for
these can be kept in their logical place within the namespaces.
I am currently working on moving to using Doctrine 2 which will change
the way I work with modules and will hopefully take the
package/onion/DDD implementations further. One of the big questions I
have now is validation and forms in the domain layer...
Thx
Keith
--
------------
http://www.thepopeisdead.com
没有评论:
发表评论