0
Good afternoon everyone. I am putting the mysqli connection file in the autoload, but it is not loading the $mysqli variable. How do it work? Thank you.
composer.json
"autoload": {
"files": [
"painel/config.php"
]
},
config.php
$mysqli = new mysqli("localhost", "bd", "xxxx", ...