I am working on implementing Zend Framework within an existing project that has 2 front-ends sites (the company has two sites for two tv chanels) that are administrated by the same backend site. Currently these are poorly organized with two instances of zend framework that duplicate the code of the backend/admin area and duplicate the databases since both site and backend share the data base.
In implementing the Zend Framework, I would like to create be able to split this structure this way: 1 module front-site1, 1 module for front-end site 2 and 1 module for backend/admin site. I need to be able to point each module to the same models since all three modules work on the same database and on the same business objects.
However, I haven't been able to find any information on how to do this in the documentation. Can anyone help with either a link on how to do this or some simple instructions on how to accomplish it? or to come up with a better structure if i am getting this wrong? What kind of configuration should i setup in ZF to make sure that www.site1.com -> module1 (front-end1) and www.site2.com -> module2 (front-end2) and both admin.site1 and admin.site2.com point to module3 (admin/backend)