public function platformdeleteAction() { if ($this->_hasParam('id') && $this->tplVars['lvals']['canDelete']) { include_once 'platforms.php'; $platforms = new Platforms(); $platforms->delete($this->_getParam('id')); unset($platforms); } $this->_redirect('/products/platforms/'); }