开发者

Keep repeating labels in db?

开发者 https://www.devze.com 2022-12-13 23:55 出处:网络
If I have repeating labels throughout the site - is it a good 开发者_JAVA技巧way to keep them in a database so that I can change all of them in one place? Or is there some other way?If you do use a DB

If I have repeating labels throughout the site - is it a good 开发者_JAVA技巧way to keep them in a database so that I can change all of them in one place? Or is there some other way?


If you do use a DB make sure they are not repeating in the DB :)


What environment are you in? Resource files might be a better way than a database. In ASP.Net, you can use them for multiple languages also (I'm not familiar with resource files in other environments).

0

精彩评论

暂无评论...
验证码 换一张
取 消