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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -