search

Home  >  Q&A  >  body text

The following error occurs in Chapter 3-6

syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM)

How to solve it? Dear gods please help

GOOD LUCKGOOD LUCK2528 days ago1317

reply all(3)I'll reply

  • GOOD LUCK

    GOOD LUCK2018-04-13 20:44:33

    After reading the comments, three things need to be modified,

    1. parent::initialize(); //Inherit the initialization operation in the parent class, which needs to be written as parent::_initialize(); //Inherit The initialization operation in the parent class

    2, if(empty(USER_ID)) is changed to if(is_null(USER_ID))

    3, if(!empty(USER_ID) )) Change to if(!is_null(USER_ID))

    reply
    2
  • .

    Still not right, I tried this, but I can’t log in to the background.

    . · 2018-05-02 11:05:20
    AwAreWut

    correct answer!

    AwAreWut · 2019-07-04 19:39:27
  • Cancelreply