My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* Cakewell CakePHP Database Config File
*
* This is a modified version of the CakePhp database configuration file
* the configures the database based on the App.mode value set in the
* core config file.
*
* To see the original version of this file, visit:
* https://trac.cakephp.org/browser/branches/1.2.x.x/app/config/database.php.default
*
* For more information on database configuration in CakePhp, visit:
* http://book.cakephp.org/view/40/Database-Configuration
*
*/
class DATABASE_CONFIG {

/*
This is the config that fixtures in unit tests use. Unit tests will
automatically use this configuration. No need to assign it below.

Change the database setting below and make sure that database exists
in your mysql server. It should be empty. The fixtures will create
it based on the configured database settings.
*/
var $test_suite = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'port' => '',
'login' => 'root',
'password' => 'root',
'database' => 'EMPTY_DATABASE_HERE',
'schema' => '',
'prefix' => '',
'encoding' => ''
);

var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'port' => '',
'login' => 'USER',
'password' => 'PASSWORD',
'database' => 'TEST_DATABASE_NAME',
'schema' => '',
'prefix' => '',
'encoding' => ''
);

var $production = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'port' => '',
'login' => 'USER',
'password' => 'PASSWORD',
'database' => 'PRODUCTION_DATABASE_NAME',
'schema' => '',
'prefix' => '',
'encoding' => ''
);

function __construct()
{
if ( ! Configure::Read('App.mode') )
return trigger_error('App.mode not properly set', E_USER_ERROR);

$db_key = Configure::Read('App.mode');
$this->default = $this->$db_key;
Configure::Write('App.database', $this->default['database']);
}
}
?>

Change log

5de44aa92196 by klenwell on Aug 1, 2009   Diff
T396: app successfully uploaded to nsf
server
Go to: 
Project members, sign in to write a code review

Older revisions

063e2b7c5311 by klenwell on Jul 3, 2009   Diff
adding twitter plugin
eaa688c8d070 by klenwell <klenwell> on May 30, 2009   Diff
first commit - some basic config files
All revisions of this file

File info

Size: 2092 bytes, 75 lines
Powered by Google Project Hosting