Cakephp Get Table name And Column Details: Here in this tutorial we are going to explain how to get table name and its column in cakephp.
Cakephp Get Table name And Column Details
Here is syntax to get table details in cakephp –
Get Table Name in Cakephp
Cakephp Get Table name And Column Details:
$tableName = $this->Model->table; |
The above example will give you table name.
Get Table Columns in Cakephp
Cakephp Get Table name And Column Details:
$tableColumns = $this->Model->schema(); var_dump($tableColumns); |
The above example will give you table columns.