/** * 列表 */ public function index() { $this->view->content = view('slide/index.php'); $this->view->content->rows = \DB\Mall\Slide::fetch(null, 0, 0, array('slide_order' => 'desc')); // $data = array(); // foreach ($rows as $row) // { // $data[$row->group_name][] = $row; // } // $this->view->content->rows = $data; }