I searched in every question an answer to this, but nothing found! This is the error when I enter in localhost/cakephp:
Notice (8): Undefined index: datasource [CORE\Cake\Model\ConnectionManager.php, line 258]
The other error:
Cake is NOT able to connect to the database.
Datasource class could not be found.
This is my config in database.php:
<?php
class DATABASE_CONFIG {
var $default = array('driver' => 'mysql',
'persistent' => false,
'database' => '',
'host' => 'localhost',
'login' => 'lorizz',
'password' => 'reyxD22!',
'database' => 'my_cakephp_project',
'prefix' => '');
var $test = array('driver' => 'mysql',
'persistent' => false,
'database' => '',
'host' => 'localhost',
'login' => 'lorizz',
'password' => 'reyxD22!',
'database' => 'my_cakephp_project',
'prefix' => '');
}
?>
Any answer?
public $Mysql = array([...]? It says it cant find connection "Mysql", so have you defined "Mysql" ?