public function changelogeditAction() { $products = new AdminProducts(); $buildId = $this->_getParam('build'); $productId = $this->_getParam('id'); $lang = $this->getParamLang(); $info = $products->getChangelogByBuildId($buildId, $lang); $info = $this->prepareChLogInfo($info); $productInfo = $products->getProductById($productId); //oas($info); $this->tplVars['page_js'][] = 'changelog.js'; $this->tplVars['chlogdata'] = $info; $this->tplVars['prodinfo'] = $productInfo; $this->tplVars['otherinfo']['build'] = $info['pb_build']; $this->tplVars['otherinfo']['buildid'] = $info['pb_id']; $this->tplVars['lvals']['lang'] = $lang; $this->tplVars['header']['actions']['names'][] = array('name' => 'changelog', 'menu_name' => 'Product change log', 'params' => array('id' => $this->_getParam('id'))); $this->tplVars['header']['actions']['names'][] = array('name' => 'changelogedit', 'menu_name' => 'Product change log edit', 'params' => array('build' => $this->_getParam('build'), 'id' => $this->_getParam('id'))); array_push($this->viewIncludes, 'products/changelogEdit.tpl'); }