Changed actions order.

This commit is contained in:
Gregorio Chiko Putra 2017-09-08 16:30:16 +07:00
parent 210c96e150
commit 1de9cb6447
2 changed files with 4 additions and 4 deletions

View File

@ -108,10 +108,11 @@ class Posts
'user' => $user,
'token' => Token::generate()
]);
$this->table = 'pengumuman';
} else {
throw new \Exception("Page not found", 404);
}
$this->table = 'pengumuman';
}
public function edit($id)
@ -174,11 +175,11 @@ class Posts
'categories' => $categories,
'token' => Token::generate()
]);
$this->table = 'pengumuman';
} else {
throw new \Exception("Bad request", 400);
}
$this->table = 'pengumuman';
}
/* Methods */

View File

@ -174,7 +174,6 @@ abstract class Model
return true;
} catch (PDOException $e) {
throw new \Exception($e->getMessage(), 444);
}
}
}