Next Chapter: Designing a new start page with accelerated mobile pages (AMP)

Connecting to the PostgreSQL database 10.1 from CakePHP 3.5

2019-05-26 05:00:13+00

We assume that we've already installed our database. Hence we just need to configure the connection in .../config/app.php

The entry will look like this one. Change the ? with your credentials.


   'Datasources' => [
        'default' => [
            'className' => 'Cake\Database\Connection',
            'driver'     => 'Cake\Database\Driver\Postgres',
            'persistent' => true,
            'host'       => 'localhost',
            'username'   => '???',
            'schema'   => '???',
            'password'   => '???',
            'database'   => '???',
            'encoding' => 'utf8',
            'timezone' => 'UTC',
            'flags' => [],
            'cacheMetadata' => true,
            'log' => false,
            'quoteIdentifiers' => false,
        ],
</pre>


Check out if it works be using this link Pages

Success

Tag: cakephp3

Previous Chapter: Setting up Nginx for CakePHP 3.5 and enable https with dehydrated

Next Chapter: Designing a new start page with accelerated mobile pages (AMP)