-2

I'm getting the following error: A PHP Error was encountered

Severity: Parsing Error

Message: syntax error, unexpected 'Eval' (T_EVAL), expecting identifier (T_STRING)

Filename: controllers/Eval.php

Line Number: 3

Here's my code:

Eval.php

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Eval extends CI_Controller {

function __construct(){
    parent::__construct();
    $this->load->database();
}

public function rmostrar()
{
    $this->load->model('evalmodel');
    $this->data['reactivos'] = $this->evalmodel->obtenerReactivos();
    $this->load->view('evaluacion',$this->data);
}

}

I'm following the naming rules for Codeigniter yet I do get that error. Can somebody explain it?

Eternal_N00B
  • 357
  • 1
  • 3
  • 9

1 Answers1

1

could be Eval is a reserve word, can you try another class name and see if it works?