title: Call to undefined method ConnectionManager::getInstance() cakephp ugrade 1.3 to 2.0
body: <p>I am getting the <strong>error</strong>:</p>
  
  <blockquote>
    <p>Error: Call to undefined method ConnectionManager::getInstance() File:
    /app/Controller/UsersController.php Line: 11</p>
  </blockquote>
  
  <p>below are the function:</p>
  
  <pre><code>function changeDbSource($database = 'default') {   
  
      $db = ConnectionManager::getInstance();
  
      $connected = $db-&gt;getDataSource($database);
  
      if ($connected-&gt;isConnected()) {
  
          return true;
  
      } else {
  
          return false;
  
      }
  }
  </code></pre>
  
  <p>please help.</p>