flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.61k stars 408 forks source link

Documentation: "dnbname" should be "dbname" #258

Closed ipavl closed 8 years ago

ipavl commented 8 years ago

These three lines on http://flightphp.com/learn#extending should say dbname instead of dnbname:

Flight::register('db', 'PDO', array('mysql:host=localhost;dnbname=test','user','pass'));

//     new PDO('mysql:host=localhost;dnbname=test','user','pass');

Flight::register('db', 'PDO', array('mysql:host=localhost;dnbname=test','user','pass'), function($db){
mikecao commented 8 years ago

Thanks, it has been fixed in the new website.