title: Cakephp How to change database connection
body: <p>I have 2 controllers, ContentController for general user and ManageController for administrator. I need to change the connection from default to admin and I have this code in my database.php</p>
  
  <pre><code>class DATABASE_CONFIG {
  
      public $default = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; 'localhost',
          'login' =&gt; 'user',
          'password' =&gt; '',
          'database' =&gt; 'ComputerScience',
          'prefix' =&gt; '',
          'encoding' =&gt; 'utf8',
      );
  
      public $admin = array(
          'datasource' =&gt; 'Database/Mysql',
          'persistent' =&gt; false,
          'host' =&gt; 'localhost',
          'login' =&gt; 'admin',
          'password' =&gt; '',
          'database' =&gt; 'ComputerScience',
          'prefix' =&gt; '',
          'encoding' =&gt; 'utf8',
      );
  }
  </code></pre>
  
  <p>Thank you</p>