Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp table name convention

I have an existing site in Joomla. and I want new application in CakePHP but with same existing Joomla site database.

So here is the problem with the tables name. Please suggest me how to use that table (like market_type, listing_type in singular form) in Cakephp, because in cakephp standard we use tables in plural form.

like image 616
user3350099 Avatar asked Dec 11 '22 07:12

user3350099


1 Answers

You can define table name in model

class Example extends AppModel {
public $useTable = 'exmp'; // This model uses a database table 'exmp'
}

Use Table Cakephp

like image 82
Deadlock Avatar answered Dec 30 '22 18:12

Deadlock