github - Managing a Yii app with Git -


if have public git repository yii app. i'm wondering how keep db config settings private? can't ignore whole file.

create second ignored config , merge results:

$config=require_once(dirname(__file__).'/protected/config/main.php');  $configignored=require_once(dirname(__file__).'/protected/config/ignored.php');  require_once($yii);  $config = cmap::mergearray($config, $configignored); yii::createwebapplication($config)->run(); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -