Pricing fix

This commit is contained in:
dev-chiefworks
2023-01-10 09:02:23 -05:00
parent 9df84c384f
commit fd893e019e
3 changed files with 55 additions and 9 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ $routes->get('/mermsmemr/myfit/blogdata/(:any)', 'Myfit::blogdata/$1');
$routes->get('/mermsmemr/myfit/blogdata', 'Myfit::blogdata'); // when no limit is sent
$routes->get('/mermsmemr/myfit/faq', 'Myfit::faq');
$routes->post('/mermsmemr/myfit/contact', 'Myfit::contact');
$routes->post('/mermsmemr/myfit/pricing', 'Myfit::pricing');
$routes->get('/mermsmemr/myfit/pricing', 'Myfit::pricing');
+6 -8
View File
@@ -24,13 +24,6 @@ class Myfit extends BaseController
return $this->response->setJson($res1);
}
public function pricing()
{
$mBlogData = new \App\Models\myfitBlogData();
$res1 = $mBlogData->getBlogData([]);
return $this->response->setJson($res1);
}
public function contact()
{
$inx = array(
@@ -70,5 +63,10 @@ class Myfit extends BaseController
$mFaq = new \App\Models\myfitFaqData();
return $this->response->setJson($mFaq->getSiteFaq([]));
}
public function pricing()
{
$mPricing = new \App\Models\myfitPricing();
return $this->response->setJson($mPricing->getSitePricing([]));
}
}
+48
View File
@@ -0,0 +1,48 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class myfitPricing extends Model
{
public function __construct()
{
parent::__construct();
}
public function getSitePricing($in)
{
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 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 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.'
]
);
}
}