Updated readme and some fixes.
This commit is contained in:
@@ -135,7 +135,9 @@ class Posts
|
||||
$date = new \DateTime();
|
||||
$now = $date->format("Y-m-d");
|
||||
|
||||
$get_categories = $this->model->showAll([], 'kategori');
|
||||
$get_categories = $this->model->showAll([
|
||||
['status', '!=', 0]
|
||||
], 'kategori');
|
||||
$categories = [];
|
||||
|
||||
if ($get_categories) {
|
||||
@@ -305,7 +307,7 @@ class Posts
|
||||
|
||||
$this->model->update($args, $args['id'], $table);
|
||||
|
||||
Session::flash('info', 'Update berhasil');
|
||||
Session::flash('info', 'Data berhasil diperbarui');
|
||||
Redirect::to('/posts/category');
|
||||
die();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user