Well if the controller logic is identical, you could have it instantiated by a configurable factory that changes the injected model according to the current route.
Cheers Stefano Torresi 2014-09-02 17:47 GMT+02:00 Rob Allen <[email protected]>: > Hi, > > The way I handle this is to have the one module with two sets of routes > and two controllers. > > Regards, > > Rob... > > > On 2 Sep 2014, at 08:40, [email protected] wrote: > > > Hi, > > I'm playing with ZF2 and wonder if it's possible to use one module > twice. For example I've got module which name is UserAuth. In the same time > I will have admin area and consumer area and I'll need authentication > functionality in both areas. Is it possible to use the same module twice > somehow, just changing the routing and the name of the tables which are > going to be used? > > > > Regards, > > S. > > -- > List: [email protected] > Info: http://framework.zend.com/archives > Unsubscribe: [email protected] > > >
