2011年2月11日星期五

Re: [fw-mvc] Re: Theming Idea

Le 11/02/11 04:01, Joe Balancio a écrit :
>
> Ok that's understandable that the Controllers are application logic. My
> models, however, are not and can be reused across different projects. The
> models are associated with a web service class. Would it still make sense to
> keep them in the library?
>
> I would ideally want to keep the themes in separate folders. This means I
> would use one module and have a themes folder containing the desktop theme
> or mobile theme. Then I can detect the platform in a frontcontroller plugin
> and stack a theme path.
>
> -----
> - Joe

From a file system & use perspective, it looks like you wrote kind of
an extension.

Maybe an extensions/ folder will be the place for you files as you could
pack them under a given namespace to wrap your models, skins, etc.

Magento uses this kind of design for its modules.

Just write the according plugin to handle your extension and load them
wherever you are.

没有评论: