public function deleteAction($id) { $model = Language::findFirst($id); if ($this->request->isPost()) { $this->cache->delete(Language::cacheKey()); $model->delete(); return $this->redirect($this->url->get() . 'cms/language'); } $this->view->model = $model; $this->view->title = $this->helper->at('Removing language'); $this->helper->title($this->view->title); }