php - Connect to a database in Silex -
i have
$app->register(new silex\provider\doctrineserviceprovider(), array( 'db.options' => array( 'dbname' => 'dbname', 'user' => 'user', 'password' => '', 'host' => 'host', 'driver' => 'pdo_mysql' ), )); which correct, can connect database within phpstorm directly same credentials inserted in register. when
echo '<pre>' . var_export($app['db'], true) . '</pre>'; i get:
i don't understand why it's not saying isconnected = true because credentials correct.
edit: query attempt based on silex docs example 
this results in same "whoops, looks went wrong" error.

Comments
Post a Comment