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.
You can define table name in model
class Example extends AppModel {
public $useTable = 'exmp'; // This model uses a database table 'exmp'
}
Use Table Cakephp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With