Currently working on Cakephp 2.x and went through a following error. We are upgrading an old project which is written in procedural php to cake php with more concepts. So we gotta use the existing database which doesnt have any cake conventions. Currently the problem i am facing is there is a table called tranz_vehicle in database. I have a model named vehicle.php and following is the code for it
<?php
class Vehicle extends AppModel{
public $useTable="tranz_vehicle";
}
?>
Even after i used $useTable, It shows the following error
Table vehicles for model Vehicle was not found in datasource default.
I cant modify the table name.. Any suggestions? Am a total newbie to cakephp
Also there is table users in database already and i created a model user and it works perfectly. The problem is with rest of tables like tranz_vehicle