Thanks Mariano, that did the trick. One change I had to make was
commenting out this line in the else statement:

> $DataSource->disconnect();


Mariano Iglesias wrote:
> Edit your webroot/index.php file and look for the following lines:
>
> $Dispatcher=new Dispatcher();
> $Dispatcher->dispatch($url);
>
> Just before these two lines try adding the following code:
>
> $ConnectionManager =& ConnectionManager::getInstance();
> $DataSource = @$ConnectionManager->getDataSource('default');
>
> $connected = @$DataSource->connect();
>
> if (!$connected)
> {
>       echo '<strong>COULD NOT CONNECT to database.</strong><br /><br />';
>       echo 'Current Settings:';
>       echo '<ul>';
>       echo '<li>HOST: ' . $DataSource->config['host'] . '</li>';
>       echo '<li>USER: ' . $DataSource->config['login'] . '</li>';
>       echo '<li>DATABASE: ' . $DataSource->config['database'] . '</li>';
>       echo '</ul>';
> 
>       exit;
> }
> else
> {
>       $DataSource->disconnect();
> }


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to