public function delete($id) { if ($this->session->validCsrf($this->request)) { Model::delete($this->model, $id); } return Response::redirect($this->single . '/index'); }
public function delete($id) { if ($this->session->validCsrf($this->request)) { Model::delete('Blog\\Model\\Category', $id); } return Response::redirect('category/index'); }
public function install() { $post = new Post(); $user = new User(); $category = new Category(); $postcategory = new PostCategory(); Model::execute($category->install()); Model::execute($user->install()); Model::execute($post->install()); Model::execute($postcategory->install()); }
public function delete($id) { Model::delete('Blog\\Model\\Post', $id); $this->redirect('posts'); }
public function delete($id) { $this->render('User/delete', ['user' => Model::delete('Blog\\Model\\User', $id)]); $this->redirect('users'); }