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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -