From 09ff467443969a4c743c8fb81d9e946dd855840e Mon Sep 17 00:00:00 2001 From: dho Date: Sun, 24 Sep 2006 15:24:52 +0000 Subject: [PATCH] Actualizing config files in skel folder git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3574 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/scripts/templates/skel/config/core.php | 2 +- cake/scripts/templates/skel/config/database.php.default | 8 ++++---- cake/scripts/templates/skel/config/routes.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cake/scripts/templates/skel/config/core.php b/cake/scripts/templates/skel/config/core.php index e51dcc517..6de3d435c 100644 --- a/cake/scripts/templates/skel/config/core.php +++ b/cake/scripts/templates/skel/config/core.php @@ -49,7 +49,7 @@ * With the other debug levels you get to click the "flash message" to continue. * */ - define('DEBUG', 1); + define('DEBUG', 2); /** * Turn of caching checking wide. * You must still use the controller var cacheAction inside you controller class. diff --git a/cake/scripts/templates/skel/config/database.php.default b/cake/scripts/templates/skel/config/database.php.default index ff38d0e96..d9d40f358 100644 --- a/cake/scripts/templates/skel/config/database.php.default +++ b/cake/scripts/templates/skel/config/database.php.default @@ -29,7 +29,7 @@ /** * In this file you set up your database connection details. * - * @package cake + * @package cake * @subpackage cake.config */ /** @@ -42,15 +42,15 @@ * 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 + * SQLite set the connect to sqlite_popen or sqlite_open + * MSSQL set the connect to mssql_connect or mssql_pconnect * ADOdb set the connect to one of these * (http://phplens.com/adodb/supported.databases.html) and * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent) * * 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' + * To add a port number use 'port' => # * */ class DATABASE_CONFIG diff --git a/cake/scripts/templates/skel/config/routes.php b/cake/scripts/templates/skel/config/routes.php index ec74982fc..10d951cbd 100644 --- a/cake/scripts/templates/skel/config/routes.php +++ b/cake/scripts/templates/skel/config/routes.php @@ -33,14 +33,14 @@ * its action called 'display', and we pass a param to select the view file * to use (in this case, /app/views/pages/home.thtml)... */ - $Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); + Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); /** * ...and connect the rest of 'Pages' controller's urls. */ - $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); + Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); /** * Then we connect url '/test' to our test controller. This is helpfull in * developement. */ - $Route->connect('/tests', array('controller' => 'tests', 'action' => 'index')); + Router::connect('/tests', array('controller' => 'tests', 'action' => 'index')); ?> \ No newline at end of file