Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silly enough suggestion #3

Open
pine3ree opened this issue May 13, 2015 · 0 comments
Open

silly enough suggestion #3

pine3ree opened this issue May 13, 2015 · 0 comments

Comments

@pine3ree
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant