title: Best practice for storing settings for a website?
body: <p>Originally, my intention is to create a class (Object oriented) to store settings as constant. For example, in PHP:</p>
  
  <pre><code>class Settings{
       const test = 'foobar!';
  }
  </code></pre>
  
  <p>But later on, I think that this approach does not let the Admin user modify these settings. It seems that only non-necessary-to-modify settings should be declared as constant, and others should be declared as private variable, then the application will find whether settings are available in the database Setting table first, if not, it will use default from get(), set() function defined in Settings class. 
  Is that a good approach? What is the best approach? I appreciate any pieces advice on this issue.</p>