public function showAction() { parent::showAction(); $id = $this->getRequest()->getParam('id'); if (!is_null($id)) { $id = (int) $id; $job = $this->db->fetchRow("SELECT * FROM gems__comm_jobs WHERE gcj_active = 1 and gcj_id_job = ?", $id); if ($job) { $model = $this->loader->getTracker()->getTokenModel(); $filter = $this->loader->getUtil()->getDbLookup()->getFilterForMailJob($job); $params['model'] = $model; $params['filter'] = $filter; $this->addSnippet('TokenPlanTableSnippet', $params); } } }
public function showAction() { $model = $this->getModel(); $data = $model->loadFirst(); if ($data) { $this->_setMenuParameters($data); } parent::showAction(); }