controller->pagedata['data'] = $this->get_views(); /** 判断是否要显示归类视图 **/ $is_display_packet = 'false'; foreach ($this->controller->pagedata['data'] as $arr){ if ($arr['addon']) { $is_display_packet = 'true'; break; } else { $is_display_packet = 'false'; } } $this->controller->pagedata['haspacket'] = ($is_display_packet=='true') ? true : false; $this->controller->display('finder/view/packet.html','desktop'); } }