I'm using CakePHP and when baking a table "cases", I get syntax error, unexpected T_CASE, expecting T_STRING from the model
<?php
App::uses('AppModel', 'Model');
/**
* Case Model
*
*/
class Case extends AppModel {
I'm guessing the error is because the class name is "Case", based off the db table. Is this correct? Are we not able to use "Case" as a class name?
Caseis the issue. You need to use another name.