Mithril now can walks by itself

This commit is contained in:
2017-10-05 16:41:34 +07:00
parent ae762758fc
commit cfa0924ea7
26 changed files with 4299 additions and 1524 deletions

View File

@@ -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);
}