I am new to cakephp and trying to customise a cake application.
I have seen they are using models without having model class files in app/models folder
I think there is an automatic mapping from table to model
I am sharing some usefull lines of codes
public $uses = array('LinkEmperorCampaignDetail','Configuration','Article');
$this->paginate = array(
'conditions' => $condition,
'limit' => 10
);
$this->set('articles', $this->paginate('Article'));
As you have seen its importing Article model using $uses variable, there is a table "articles" in database, But there is no file Article.php in app/models. I have deleted cache folder and disabled caching.
I have checked if it is automatic, by creating a table "test" and used this code
$test=$this->test->find('all');;
var_dump($test);exit();
but getting this error Error: Call to a member function find() on a non-object
Please let me know how this is happening
Thanks, Lajeesh