I decide to work with Symfony for three weeks, realizing a small projekt to test.
Inside a Controller I use MySQL native without Problems. Now I want to change to MySQLi and nothing runs.
Connecting to the DB with:
$mysqliName = new mysqli('localhost', 'user', 'psasswd,', 'database');
fails with:
"Class 'blabla\HaloBundle\Controller\mysqli' not found in /Applications/MAM.../HaloController.php"
I can run MySQL in a “normal” php, out of Symfony without problems. What must I do, that I can use the MySQLi Classes in a Controller?
With \mysqli for the global namespace it works.