Mithril now can walks by itself
This commit is contained in:
@@ -16,7 +16,6 @@ class Api
|
||||
public function posts($args = ['id' => '1'])
|
||||
{
|
||||
$get = [];
|
||||
$get['count'] = 0;
|
||||
|
||||
if ($args['id'] == 3) {
|
||||
$get['data'] = $this->model->showJoin();
|
||||
@@ -42,10 +41,6 @@ class Api
|
||||
$temp_data = [];
|
||||
}
|
||||
|
||||
if ($get['data'] != false) {
|
||||
$get['count'] = count($get['data']);
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($get);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user