Format text

This commit is contained in:
Olu Amey
2023-01-10 08:46:58 -05:00
parent 2a6111ab19
commit 9df84c384f
2 changed files with 24 additions and 23 deletions
+8 -7
View File
@@ -34,17 +34,17 @@ class Myfit extends BaseController
public function contact()
{
$inx = array(
'name' => $this->post('name'),
'email' => $this->post('email'),
'country' => $this->post('country'),
'phone' => $this->post('phone'),
'message' => $this->post('message')
'name' => $this->post('name'),
'email' => $this->post('email'),
'country' => $this->post('country'),
'phone' => $this->post('phone'),
'message' => $this->post('message')
);
$something = $this->request->getVar('name');
$raw_json = file_get_contents("php://input");
$raw_array = json_decode($raw_json, true);
$inx = ['olu' => rand(100, 8888). $something];
$inx = ['olu' => rand(100, 8888) . $something];
$mBlogData = new \App\Models\myfitBlogData();
$res1 = $mBlogData->getBlogData([]);
//return $this->response->setJson($res1);
@@ -65,7 +65,8 @@ class Myfit extends BaseController
return $this->response->setJson($mCountry->getSiteCountries([]));
}
public function faq(){
public function faq()
{
$mFaq = new \App\Models\myfitFaqData();
return $this->response->setJson($mFaq->getSiteFaq([]));
}