Skip to content

silly enough suggestion #3

Description

@pine3ree

Hello Josh,

In the pdo chapter pag 95/96 i would rather use:

// settings.php
return [
    'host' => '127.0.0.1',
    //....
];

and then set the variable including the file:

$settings = '../settings.php';

i think it's always preferable to have variables defined in the same file they are used (when possible).

kind regards,
great book!
:-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions