I'd like to use SQLite3
with Agile Toolkit
. I found it in the documentation that the SQLite driver is included with atk4
, but I couldn't find any examples of how to connect to a SQLite DB.
I tried to change the DB connection of the example applications shipped with atk4
from MySql
to SQLite using the format found in the Pear:DB DSN documentation:
$config['dsn']='sqlite:////var/www/webdev/atk4_example.db';
but I keep getting the could not find driver PDO error:
Application Error: Database Connection Failed
BaseException, code: 0
Additional information:
* PDO error: could not find driver
* DSN: :host=;dbname=;charset=utf8
/var/www/webdev/atk4/lib/DB.php:94
The SQLite PDO
driver seems to be installed correctly on the server. Both the phpinfo() and an PHP/PDO/SQLite3
example page confirms that it works.
I'm learning Agile Toolkit, PHP and general web development, so I might be missing something trivial.