From 7e86321332228823d0648658c48395990ac86576 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Mon, 30 Oct 2017 11:10:13 +0700 Subject: [PATCH] Updated now can select table name with '_' character --- App/Controllers/Api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/App/Controllers/Api.php b/App/Controllers/Api.php index beb2168..293d6cd 100644 --- a/App/Controllers/Api.php +++ b/App/Controllers/Api.php @@ -22,6 +22,7 @@ class Api public function get($table, $id = "", $args = []) { $get = []; + $table = str_replace('-', '_', $table); $model = 'App\Models\ApiModel'; if ($table == 'pengumuman') {