mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
e2815b4a5c
Author: phpnut Date: 4:50:40 AM, Monday, October 24, 2005 Message: Adding comment to doc block with possible settings for the driver configuration [1191] Author: phpnut Date: 4:37:46 AM, Monday, October 24, 2005 Message: Adding configuration setting in database.php to set the type of connection you want to use. Read the comments in the doc block to explain how to set the connection type. doc block also has information on setting the port to connect to. Corrected Html::tableHeaders(); Closing Ticket #98 and Ticket #26 [1190] Author: phpnut Date: 3:25:00 AM, Monday, October 24, 2005 Message: Fix for Ticket #36 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1193 3807eeeb-6ff5-0310-8944-8be069107fe0
77 lines
No EOL
2.4 KiB
Text
77 lines
No EOL
2.4 KiB
Text
<?php
|
|
/* SVN FILE: $Id$ */
|
|
|
|
/**
|
|
* This is core configuration file.
|
|
*
|
|
* Use it to configure core behaviour ofCake.
|
|
*
|
|
* PHP versions 4 and 5
|
|
*
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
|
* Copyright (c) 2005, CakePHP Authors/Developers
|
|
*
|
|
* Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
|
|
* Larry E. Masters aka PhpNut <nut@phpnut.com>
|
|
* Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
|
*
|
|
* Licensed under The MIT License
|
|
* Redistributions of files must retain the above copyright notice.
|
|
*
|
|
* @filesource
|
|
* @author CakePHP Authors/Developers
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
|
* @package cake
|
|
* @subpackage cake.cake.app.config
|
|
* @since CakePHP v 0.2.9
|
|
* @version $Revision$
|
|
* @modifiedby $LastChangedBy$
|
|
* @lastmodified $Date$
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
*/
|
|
|
|
/**
|
|
* In this file you set up your database connection details.
|
|
*
|
|
* @package cake
|
|
* @subpackage cake.config
|
|
*/
|
|
|
|
|
|
/**
|
|
* Database configuration class.
|
|
* You can specify multiple configurations for production, development and testing.
|
|
*
|
|
* driver =>
|
|
* mysql, postgres, sqlite, adodb-drivername, pear-drivername
|
|
*
|
|
* connect =>
|
|
* MySQL set the connect to either mysql_pconnect of mysql_connect
|
|
* PostgreSQL set the connect to either pg_pconnect of pg_connect
|
|
* SQLite set the connect to sqlite_popen sqlite_open
|
|
*
|
|
* host =>
|
|
* the host you connect to the database
|
|
* MySQL 'localhost' to add a port number use 'localhost:port#'
|
|
* PostgreSQL 'localhost' to add a port number use 'localhost port=5432'
|
|
*
|
|
*/
|
|
class DATABASE_CONFIG
|
|
{
|
|
var $default = array('driver' => 'mysql',
|
|
'connect' => 'mysql_pconnect',
|
|
'host' => 'localhost',
|
|
'login' => 'user',
|
|
'password' => 'password',
|
|
'database' => 'project_name' );
|
|
|
|
var $test = array('driver' => 'mysql',
|
|
'connect' => 'mysql_pconnect',
|
|
'host' => 'localhost',
|
|
'login' => 'user',
|
|
'password' => 'password',
|
|
'database' => 'project_name-test');
|
|
}
|
|
|
|
?> |