Gate postgres links
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user