Exemplo n.º 1
0
 /**
  * Retrieves a setting value from either the settings model or the main config file
  * @param string $setting_name
  * @param mixed $default_value If the setting isn't found
  * @return mixed
  */
 public static function getSetting($setting_name, $default_value = null)
 {
     if (class_exists('Model_Settings')) {
         return \Model_Settings::getSetting($setting_name, $default_value);
     }
     return \Config::get($setting_name, $default_value);
 }