public function editAction() { if ($this->tplVars['lvals']['canEdit']) { // array_push($this->tplVars['header']['actions']['names'], array('name' => 'edit', 'menu_name' => 'Edit News')); //array_push($this->tplVars['page_js'], 'features.js'); array_push($this->viewIncludes, 'news/Add.tpl'); array_push($this->viewIncludes, 'news/List.tpl'); if ($this->_hasParam('lang')) { $lang = $this->_getParam('lang'); $saved = $this->_hasParam('saved') ? $this->_getParam('saved') : '0'; $news = new AdminNews(); $this->tplVars['lvals']['language'] = $lang; // $this->tplVars['lvals']['product'] = $pId; // $this->tplVars['lvals']['title'] = $products->getProduct($pId); $this->tplVars['lvals']['saved'] = $saved; $this->tplVars['news'] = $news->getNews($lang); } } else { // $this->_redirect('/news/list/'); } }