Why is the editing template rendering under the User controller different from that under the Grade controller?
黄子乐
黄子乐 2017-11-14 13:38:22
0
1
1332

Edit template rendering of user controller

$this->view->assign('user_info',$result->getData());

grade controller Edit template rendering

$this->view->assign('grade_info',$result);

Why is there no getData method under grade?


黄子乐
黄子乐

reply all(1)
乘易网络

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template