Can I Create config files with namespaces in Yii2 or do I just create a model from my settings table? -
this question using config files configuration or rather saving configurations on settings table on database. configurations change include usernames , passwords apis using. have thought of saving sensitive information config file , other settings database. possible me create config file in @app\config
folder , declare global variable $cfg[]
can call controllers , views? question withing same question is, security risk use database configuration settings api username , password?
if using advanced templates can use param.php or local-param.phpcper management of global parameters can used place want. if these parameters common both frontend backend appropriate indicate in \ common.
for storing passwords in database, or conservation in configuration file param purely personal choice. i'm running through files param comfortable. fact of creating database table model, controller, , crud easy yii2 using automatic generator gii. on years found tables of database configurations rather awkward unless use structures , key value persistent , why found facilities configuration yii2 practical
Comments
Post a Comment