private function matchingUrl($url) { $urls = Manager::urls(); if (array_key_exists($url, $urls)) { return $urls[$url]; } }
public function deleteAction($id) { $model = Manager::findFirst($id); if ($this->request->isPost()) { $model->delete(); $this->redirect($this->url->get() . 'seo/manager'); } $this->view->model = $model; $this->helper->title('Deleting SEO-Manager record', true); }