developer10 wrote > Here's a screenshot of my IDE showing my app tree-structure, with some > arrows and actual question typed on it. > http://screencast.com/t/1iJanCwXxnk > > For those not curious enough to open the above link, here's summary: > > I'm coding custom module Messenger, with currently 2 controllers present: > - Home (welcome message) > - Inbox (self-explanatory) > > The table name is called "messenger", my model entity is MessengerEntity > > I want to have separate Service files but I'm unsure how should I name > them. > > I went with this: > /src > /Messenger > /Services > /MessengerControllerFactory.php > /MessengerServiceFactory.php > /MessengerTableFactory.php > > > > Could it be said that the first part of the name (in my case: "Messenger") > is actually related to the name of the db table, not to the module or > controller names?
In my opinion your naming is correct except the MessengerControllerFactory.php. If that factory is supposed to be creating all the Conrtollers within that Module then it i ok but otherwise youshould have Inbox and Home Controller factories. ----- Cheers, -- Luke Mierzwa -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Service-Manager-best-practice-tp4657008p4657062.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
