Jurian Sluiman wrote: > > Hi Eugen, > I have had the same thoughts about this subject. For me, I'd like to have > one > cms to control multiple websites at the same time, but the implementation > is > almost the same as yours. > > You need for each different website a different public folder to store the > styles, scripts and images. I think you should remove the application.ini > from > you application directory and put it in the public dir of the specific > website, but it involves a big security issue (an ini file is for sure > readable by a webbrowser). > You could change it into a php array, but this is still not the best > option > (you just placed the whole application out of your webroot). The other > option > is to make the application.ini not readable by others except for www-data > (your apache user). > > The last option (and I think it's the best one) is to rename the > application.ini to yourwebsitename.ini and put all the different configs > in > application/config. In the public/index.php you could set a constant > containing the name of the website (just like APPLICATION_PATH and > APPLICATION_ENV). > > If there are more options, please let me know. > Regards, Jurian > -- > Jurian Sluiman > Soflomo.com > > >
The automated cms will probably come with time, but for now this is one of mayor issues.. The application(domain).ini was one of the idea, even loading multiple configs (one shared, and one site specific).. DASPRiD wrote: > > If I understand you right, you are talking about shared libraries. In > that case I would just create an svn repos which get's linked via > svn:externals in all projects which require it. Then everytime you make > fixes to it, they will be updated in all other projects when deploying. > > The other option would be to put the shared library in a common > directory like /usr/share/php, where every application can use them then. > Nop, I'm talking about sharing everything - libraries, models, controllers, views, basically everything except public folder and configuration.. ----- Regards, Eugen -- View this message in context: http://www.nabble.com/Multiple-sites-with-same-code-tp23748572p23757379.html Sent from the Zend Framework mailing list archive at Nabble.com.
