modern-php icon indicating copy to clipboard operation
modern-php copied to clipboard

silly enough suggestion

Open pine3ree opened this issue 10 years ago • 0 comments

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! :-)

pine3ree avatar May 13 '15 13:05 pine3ree