search

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?

梦游天下梦游天下2411 days ago1282

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