cakePHP-分析错误:语法错误,意外的T_字符串
我有一些关于这个代码的错误。证书_controller.ctp中存在问题cakePHP-分析错误:语法错误,意外的T_字符串,php,cakephp,cakephp-1.3,Php,Cakephp,Cakephp 1.3,我有一些关于这个代码的错误。证书_controller.ctp中存在问题 Parse error: syntax error, unexpected T_STRING function index() { $this->Certification->recursive = 0; $this->Trainee->recursive = 0; //$this->set('certifications', $this->paginate()
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'));
}
谢谢你的预付款我想说这句话有点不对劲:
$this->set('viewCertificate',$this->View Certificate->find('list'));
不确定型号名称,但肯定没有空格。我想说这行有点不对劲:
$this->set('viewCertificate',$this->View Certificate->find('list'));
不确定型号名称,但肯定没有空格。请提供行号,错误应包含它。请提供行号,错误应包含它。