On 27/05/2009, Eugen_cro <[email protected]> wrote: > > > Since the code will be practically the same (library and mvc) what would be > the best option so I don't have to duplicate code over and over again > (except storage, that will be pain in the ass to update later)..
The way I do it is by having each site with its own ZF app structure, and then my app in a subfolder within the /library directory. The application.ini for the site then points at the app bootstrap class. Since each site has its own application.ini, it has its own database settings etc. and the app can work out which the current site is if it needs to by looking at the SERVER_NAME. -- Tim Fountain http://tfountain.co.uk/
