search

Home  >  Q&A  >  body text

When generating Note class objects

When generating the Note class object, $model=D('Note');

reports an error saying syntax error, unexpected $model

1231232665 days ago992

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-08-11 18:13:28

    You reported a grammatical error

    reply
    0
  • 123

    $model=D('Note'); syntax error, unexpected '$model' (T_VARIABLE) var_dump(D('Note')); is correct, $model reports an error

    123 · 2017-08-14 15:52:57
    123

    The printing is correct, indicating that there is no error in instantiation, but an error occurred when passing it to the model. why

    123 · 2017-08-14 15:54:05
    123

    Solved, it was my own problem. . . .

    123 · 2017-08-14 16:25:55
    123

    Solved, it was my own problem. . . .

    123 · 2017-08-14 16:25:57
    ringa_lee

    Hey, what's the problem?

    ringa_lee · 2017-08-15 11:14:51
  • Cancelreply