dev-master
9999999-devPHP classes for database handling upon PDO
MIT
The Requires
The Development Requires
by Göran Karlsson
micro framework mvc module education
PHP classes for database handling upon PDO
Use it to retrieve information of datatables in a Database. PHP classes for database handling upon PDO., (*2)
This software is free software and carries a MIT license., (*3)
v 2 Second Edition *Completed with testcases and changed localisation of source-files *See description below:, (*4)
v 1 First edition *Based upon mos/database and mos/cform package. *The intention is to explore all datafiles in a database., (*5)
Copy the map Dbtables in vendor/roka/AnaxDbtable/Dbtable/src to your app/src map
and also the map Dbtables in vendor/roka/AnaxDbtable/Dbtable/view to your app/view map, (*6)
Urgent Don't use the old src-map ! It is only intended for test-cases., (*7)
Use inside Anax: Insert to your Index-file in webroot, (*8)
$di->set('DbtablesController', function() use ($di) { $controll = new \Roka\Dbtables\DbtablesController(); $controll->setDI($di); return $controll; });, (*9)
You must have a database connection open ie like this, (*10)
$di->setShared('db', function() { $db = new \Mos\Database\CDatabaseBasic(); // $db->setOptions(require ANAX_APP_PATH . 'config/config_mysql.php'); $db->setOptions(require ANAX_APP_PATH . 'config/config_sqlite.php'); $db->connect(); return $db; });, (*11)
You can use it from the browsner like the link, (*12)
/webroot/Dbtables/select, (*13)
. ..: Copyright (c) 2014 Göran Karlsson rgoran.karlsson@teila.com
PHP classes for database handling upon PDO
MIT
micro framework mvc module education