Subject: how to list out all the table name from database after configure the connection and without creating any models?
I m using PHP ActiveRecord in my application
i want to list all the table names of the database
Here i had configured the connection of database as below
require_once ActiveRecordDIR.'/ActiveRecord.php'; ActiveRecord\Config::initialize(function($cfg){ $cfg->set_model_directory('core/models'); $cfg->set_connections(array('development' =>'mysql://root:pass@localhost/dbname')); });
After this i wanna list out all the table names of database "dbname"
Note: I dont wanna create any Model.
Plz Help! Thx in advance
June 27 2010
April 16, 2013
Subject: how to list out all the table name from database after configure the connection and without creating any models?
I m using PHP ActiveRecord in my application
i want to list all the table names of the database
Here i had configured the connection of database as below
require_once ActiveRecordDIR.'/ActiveRecord.php';
ActiveRecord\Config::initialize(function($cfg){
$cfg->set_model_directory('core/models');
$cfg->set_connections(array('development' =>'mysql://root:pass@localhost/dbname'));
});
After this i wanna list out all the table names of database "dbname"
Note: I dont wanna create any Model.
Plz Help! Thx in advance