/** * Set the default model, get tables. */ public function init() { $this->_helper->db->setDefaultModelName('NeatlineRecord'); $this->_exhibits = $this->_helper->db->getTable('NeatlineExhibit'); $this->_records = $this->_helper->db->getTable('NeatlineRecord'); parent::init(); }
/** * Browse exhibits. */ public function browseAction() { // By default, sort by added date. if (!$this->_getParam('sort_field')) { $this->_setParam('sort_field', 'added'); $this->_setParam('sort_dir', 'd'); } parent::browseAction(); }
/** * Set the controller model. */ public function init() { $this->_helper->db->setDefaultModelName('Item'); parent::init(); }