Now it's working! Here is my code:
/myconfig.php:
<?php
//******************************************************************************
//MySQL-Server
//******************************************************************************
define('MYSQL_HOST','localhost');
define('MYSQL_LOGIN','user');
define('MYSQL_PASSWORD','password');
define('MYSQL_DATABASE','database');
?>
/app/config/bootstrap.php:
if (file_exists(ROOT.'/myconfig.php')) {
include_once ROOT.'/myconfig.php';
}
Now I can use my defines everywhere in the app.
For example in the database.php:
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => MYSQL_HOST,
'login' => MYSQL_LOGIN,
'password' => MYSQL_PASSWORD,
'database' => MYSQL_DATABASE,
'prefix' => '');
Thanks for the help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---