Home > Q&A > body text
When generating the Note class object, $model=D('Note');
reports an error saying syntax error, unexpected $model
ringa_lee2017-08-11 18:13:28
You reported a grammatical error
$model=D('Note'); syntax error, unexpected '$model' (T_VARIABLE) var_dump(D('Note')); is correct, $model reports an error
The printing is correct, indicating that there is no error in instantiation, but an error occurred when passing it to the model. why
Solved, it was my own problem. . . .
Hey, what's the problem?