Get Mysql Table Column Names Array in CakePHP 3.x
GET TABLE COLUMNS ARRAY
You can use this in any controller directly $this->Users->schema()->columns();//return Users Table Colums Name Array $this->Users->associations()->keys()//return Users assocation table key
Comments
Post a Comment