From 39dac88a7cd6014733e54462bf7760721bb9fed0 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sat, 14 Jan 2023 08:41:51 -0500 Subject: [PATCH] Contacts headrer --- app/Controllers/Myfit.php | 8 ++++++++ app/Models/myfitPricing.php | 15 +++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/Controllers/Myfit.php b/app/Controllers/Myfit.php index 4ba21a4..71b76ba 100644 --- a/app/Controllers/Myfit.php +++ b/app/Controllers/Myfit.php @@ -35,6 +35,14 @@ class Myfit extends BaseController ); $something = $this->request->getVar('name'); */ + header("Access-Control-Allow-Origin: * "); + //header("Access-Control-Allow-Origin: http://localhost:9057 "); + header("Access-Control-Expose-Headers: Access-Control-Allow-Origin"); + header("Access-Control-Allow-Credentials: true "); + //header("Access-Control-Allow-Headers: Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With"); + header("Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS"); + header('Content-type: application/json'); + $raw_json = file_get_contents("php://input"); $raw_array = json_decode($raw_json, true); $something = $raw_array["name"]; diff --git a/app/Models/myfitPricing.php b/app/Models/myfitPricing.php index 175fdab..fe66ff4 100644 --- a/app/Models/myfitPricing.php +++ b/app/Models/myfitPricing.php @@ -21,22 +21,25 @@ class myfitPricing extends Model 'icon' => '/static/media/standard.png', 'title' => 'Standard', 'text' => 'For the basics.', - 'price' => '$16', - 'features' =>['Feature 1', 'Feature 2', 'Feature 3', 'Feature 4','Feature 5'] + 'price' => 'Free', + 'price_anual' => 'Free', + 'features' =>['Reminders', 'Health Tracking', 'Feature 3', 'Feature 4','Feature 5'] ], [ 'icon' => '/static/media/unlimited.png', 'title' => 'Unlimited', 'text' => 'Professionals here.', - 'price' => '$98', - 'features' =>['Feature 11', 'Feature 22', 'Feature 33', 'Feature 44','Feature 55'] + 'price' => '$7.99', + 'price_anual' => '$55', + 'features' =>['Everyting Premium', 'Feature 22', 'Feature 33', 'Feature 44','Custom Page'] ], [ 'icon' => '/static/media/premium.png', 'title' => 'Premium', 'text' => 'For small team.', - 'price' => '$56', - 'features' =>['Feature 6', 'Feature 77', 'Feature 88', 'Feature 99','Feature 100'] + 'price' => '$5', + 'price_anual' => '$45', + 'features' =>['Everything Standard', 'Group/Family Tracking', 'Feature 88', 'Feature 99','Feature 100'] ] );