0

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

1
  • Please provide the line number, the error should contain it. Commented Aug 11, 2011 at 7:57

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.