simple-mvc-framework/v2 — pull request #50 by Volter9 (2014-09-25 16:23:24+00:00)
Title: Reusing of database and multiple connections

Changed a little bit database class. You don't have to change any code in model or anywhere else. This pull request allows to reuse database, preventing of duplicating connections and multiple connections by passing array with information, example:

```php
new database(array (
'type' => 'mysql',
'host' => 'mysql.host.com',
'name' => 'my_db',
'user' => 'flashlazer',
'password' => 'YourSecretPassword'
));
```

However, I would write it using Multiton pattern, but @andre2 didn't really liked it much :smile: