Getting Started with CakePHP 3.5 and Accelerated Mobile Pages (AMP)

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

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,
        ],

Check out if it works be using this link Pages

Success

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