I have some error about this code. Problem in certificate_controller.ctp
Parse error: syntax error, unexpected T_STRING
function index() {
$this->Certification->recursive = 0;
$this->Trainee->recursive = 0;
//$this->set('certifications', $this->paginate());
$this->set('viewCertificate',$this->View Certificate->find('list'));
$this->set('courses',$this->Course->find('list'));
$this->set('locations',$this->Location->find('list'));
$this->set('trainees',$this->Trainee->find('list'));
//$this->Trainee->recursive = 0;
$locations = $this->Location->find('list', array('order'=>'name ASC'));
//$this->set(compact('courses','locations','trainees'));
}
Thank for advance
I would say something wrong with this line:
$this->set('viewCertificate',$this->View Certificate->find('list'));
Not sure what the model name is but surely no spaces.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.