public function doList() { $items = $this->getResult('items'); if (!$items) { $f = $this->getFinder(); $this->trigger('query_ready', array('query' => $f)); $items = $f->all(); if (count($items) === 0) { $this->_meta['hidden'] = true; } } $items_event = fx::event('items_ready', array('items' => $items)); $this->trigger($items_event); $items = $items_event['items']; $this->assign('items', $items); if ($pagination = $this->getPagination()) { $this->assign('pagination', $pagination); } $this->trigger('result_ready'); }