Home  >  Q&A  >  body text

Why do we need to pass in the second parameter $data?

Why do we need to pass in the second parameter $data? Can't we just use $this->data['name'] directly in the getHireDateAttr() method?

梦游天下梦游天下2395 days ago1263

reply all(1)I'll reply

  • Imagine Breaker

    Imagine Breaker2018-09-06 19:49:49

    The second parameter when calling this function is $data, otherwise how to get the name value

    reply
    0
  • Cancelreply