public function deleteAction() { $feature = $this->byId(); $this->featureService->deleteFeature($feature); if (!$this->_getParam('_ajax')) { $this->redirect('project', 'view', array('id' => $feature->projectid, '#features')); } }