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([]));
}
+16 -16
View File
@@ -15,33 +15,33 @@ class myfitFaqData extends Model
public function getSiteFaq($in)
{
return array
(
[
'title'=>'This is the title 1',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
return array
(
[
'title' => 'This is the title 1 from backend',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
],
[
'title'=>'This is the title 2',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
'title' => 'This is the title 2',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
],
[
'title'=>'This is the title 3',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
'title' => 'This is the title 3',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
],
[
'title'=>'This is the title 4',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
'title' => 'This is the title 4',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
],
[
'title'=>'This is the title 5',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
'title' => 'This is the title 5',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
],
[
'title'=>'This is the title 6',
'text'=>'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
'title' => 'This is the title 6',
'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.'
]
);
);
}