php - List all tables in cakePHP 3.x -
i have been trying work 1 out. in cakephp 2 use:
$tables = connectionmanager::getdatasource('default')->listsources();
but in cakephp 3.x can't work out use? have looked @ link cakephp schema list of tables
unfortunately doesnt cakephp 3.0?
we can list of table in cakephp3 using similar pattern
$tables = connectionmanager::get('default')->schemacollection()->listtables();
Comments
Post a Comment