assign The first parameter is the variable name referenced by the front end, followed by the value $this->view->assign('user_info',$result->getData()); The value passed is the getData() method The second value obtained is directly passed the value of the $result variable
assign The first parameter is the variable name referenced by the front end, followed by the value $this->view->assign('user_info',$result->getData()); The value passed is the getData() method The second value obtained is directly passed the value of the $result variable