title: How to specify database configuration in CakePHP 2.0.2?
body: <p>I've just installed CakePHP 2.0.2 for use in a new project. I'm trying to use a database configuration called <code>development</code> but my model doesn't seem to be picking it up.</p>
  
  <p>Based on CakePHP 2's new directory and file name conventions, I've created the following at <code>/app/Model/AppModel.php</code>:</p>
  
  <pre><code>&lt;?php
  class AppModel extends Model {
  
      public $useDbConfig = 'development';
  }
  </code></pre>
  
  <p>However, the default home page tells me:</p>
  
  <blockquote>
    <p>Cake is NOT able to connect to the database.</p>
  </blockquote>
  
  <p>Yet if I change the configuration name in <code>/app/Config/database.php</code> to <code>default</code> the message changes to a success message, as though it's not picking up my custom <code>AppModel</code> class.</p>
  
  <p>How can I remedy this? As the new CakePHP 2.0 docs say to use the <code>$useDbConfig</code> property as I have done above?</p>
  
  <p>EDIT: Contents of <code>/app/Config/database.php</code>:</p>
  
  <pre><code>class DATABASE_CONFIG {
  
      public $development = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; 'localhost',
          'login' =&gt; 'root',
          'password' =&gt; '',
          'database' =&gt; 'cakephp_db',
          'prefix' =&gt; '',
          'encoding' =&gt; 'utf8',
      );
  }
  </code></pre>