Esempio n. 1
0
 public function delete($id)
 {
     if ($this->session->validCsrf($this->request)) {
         Model::delete($this->model, $id);
     }
     return Response::redirect($this->single . '/index');
 }
Esempio n. 2
0
 public function delete($id)
 {
     if ($this->session->validCsrf($this->request)) {
         Model::delete('Blog\\Model\\Category', $id);
     }
     return Response::redirect('category/index');
 }
Esempio n. 3
0
 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());
 }
Esempio n. 4
0
 public function delete($id)
 {
     Model::delete('Blog\\Model\\Post', $id);
     $this->redirect('posts');
 }
Esempio n. 5
0
 public function delete($id)
 {
     $this->render('User/delete', ['user' => Model::delete('Blog\\Model\\User', $id)]);
     $this->redirect('users');
 }