jaedb
8/30/2013 - 12:16 AM

SilverStripe ConfigDB Sample

SilverStripe ConfigDB Sample

<?php

/* === ENVIRONMENT-SPECIFIC SETTINGS (excluded from Git) === */

$databaseConfig = array(
  "type" => 'MySQLDatabase',
	"server" => 'localhost',
	"username" => 'username',
	"password" => 'password',
	"database" => 'database',
	"path" => '',
);

// setup state switches
Director::set_environment_type("dev");
//Director::set_environment_type("live");

Security::setDefaultAdmin('admin','password');