Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Site Configuration Params In Config/main.php Or Database?

$
0
0
As the project grows, I find that many configurable things, like how many rows a datatable should show at a time, the mail server address...are scattered in many different files, after some time, it may become hard to change these parameters as I forget where they are or the same parameter may exist in several places. So I think about the 'params' section in the app-wide config file, and it probably will suit me needs, but I'm not sure.

My question is--If the project has a lot of configuration params, would it be better to store them in the database? which option has better performance?

Viewing all articles
Browse latest Browse all 18717

Trending Articles