Skip to content

Instantly share code, notes, and snippets.

View yuigoto's full-sized avatar
🔧
working on amazing projects and tools

Fabio Goto yuigoto

🔧
working on amazing projects and tools
View GitHub Profile
@yuigoto
yuigoto / CodeIgniter_PDOSQLiteMySQL.php
Last active February 14, 2023 06:25
[PHP : CodeIgniter Config] How to setup PDO and SQLite for CodeIgniter (for SQLite and MySQL). This is the `database.php` file in `the application/config` folder #codeigniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$active_group = 'default';
$query_builder = TRUE;
// FOR SQLITE
$db['default'] = array(
'dsn' => 'sqlite:[path-to-database-file]',
'hostname' => 'localhost',