php - Access another module's entity -
i using 2 module in zend project. 1 administration , client. have created 1 entity in administration module. now, want access file. should need copy file client module's entity? or can access giving it's path. if so, path?
going software-design-perspective, should not need entity itself, rather should create service let's other modules access db / entities.
other tho, use othermodule\entity\newsentity;
and... new newsentity();
. basic php 5 namespace stuff. see namespaces in under 120 seconds.
Comments
Post a Comment