/** * Display method * * @param string $tpl template name * * @return void */ public function display($tpl = null) { $this->form = $this->get('Form'); $this->item = $this->get('Item'); // Display the template parent::display($tpl); }
/** * Display method * * @param string $tpl template name * * @return void */ public function display($tpl = null) { // Get items $model = $this->getModel(); $this->items = $model->getItems(); $this->state = $model->getState(); $this->pagination = $model->getPagination(); $this->filterForm = $model->getForm(); // Display the template parent::display($tpl); }