I'm building a controller for a legacy CakePHP2.5 application, the controller loads an existing model then query data from the table for that model, when call the controller I keep getting the error message below
Missing Database Table Error: Database table supports for model Support was not found.
below is the Support Controller code
<?php
class SupportController extends AppController{
public $name='Support';
public $helpers = array('Html','Form');
public function index(){
$this->loadModel('Applicant');
$appConditions = array(
'fields'=>array('first_name','surname','middle_name','maiden_name','date_of_birth'),
'order'=>array('Applicant.created DESC')
);
$this->paginate['Applicant'] = $appConditions;
$applicationData = $this->paginate('Applicant');
$this->set(compact('applicationData'));
// $this->set('applicants', $this->Applicant->find('all'));
}
}
The controller does not require a model as it is suppose to load data from the applicant model which already exists.