Skip to content

Instantly share code, notes, and snippets.

@mazhar266
Forked from seiichi/db.php
Created March 6, 2019 04:33
Show Gist options
  • Save mazhar266/a4876a03ff1777553dc9fa5d6a0db12b to your computer and use it in GitHub Desktop.
Save mazhar266/a4876a03ff1777553dc9fa5d6a0db12b to your computer and use it in GitHub Desktop.
getting sqlite to work with fuelphp
// works with FuelPHP 1.4
return array(
'default' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => 'sqlite:/PATH/TO/DATABASE_FILE',
'username' => '',
'password' => '',
),
'charset' => NULL, /* http://stackoverflow.com/questions/263056/how-to-change-character-encoding-of-a-pdo-sqlite-connection-in-php */
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment