>
> I think the title of my email was a bit ambiguous, specifically I mean re-using
> such things as domain logic from model classes and common form classes in more
> than one module.
I agree that I'm missing the point a little bit as well... I use
something like this:
application/ or repository/
library/
My/
Form/
Some.php (contains class My_Form_Some)
Domain/
Other.php (contains class My_Domain_Other)
Where classes located under "application/" are ment for sharing across
modules, while in "repository/", more generic (located outside of the
application directory), for sharing across applications.
Include path is set first for application and secondly for repository.
Does this not answer the sharing problem? Or do you see any potential
issues in such structure?
I see only one: forms are not located under modules/module/forms/ but
under library/... Is this a problem?
Regards,
Marian
没有评论:
发表评论