Gate postgres links

This commit is contained in:
2023-01-24 10:29:57 -05:00
parent 53529c2df7
commit 84c4322bde
5 changed files with 48 additions and 1 deletions
+7 -1
View File
@@ -148,8 +148,14 @@ class Myfit extends BaseController
header('Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS');
header('Content-type: application/json');
$db = \Config\Database::connect('mermsemr_site');
$query = $db->query(
'SELECT * FROM myfit_faq ORDER BY id ASC LIMIT 15'
);
$data['faq_data'] = $query->getResultArray();
$mFaq = new \App\Models\myfitFaqData();
return $this->response->setJson($mFaq->getSiteFaq([]));
return $this->response->setJson($data['faq_data'] /*$mFaq->getSiteFaq([])*/);
}
public function pricing()