Files
MermsWebsite2021/app/Controllers/Home.php
T
CHIEFSOFT\ameye da795223c9 new blog location
2024-09-14 13:52:14 -04:00

50 lines
1.7 KiB
PHP

<?php
namespace App\Controllers;
use App\Services\WpContentsClient;
class Home extends BaseController {
public function index() {
// $wpData = WpContentsClient::serviceGetBlogItems();
$out = $this->APIcall('GET','https://blogdata.chiefsoft.net/blogdata/mermsemr',[]); // https://blogdata.chiefsoft.net/
$data["blog_post"] = $out['payload']['blogdata'];
// var_dump( $data["blog_post"] );
//exit();
global $myfit_items;
global $practice_text1;
global $practice_text2;
$data = array();
// $data["blog_post"] =$this->getBlogItems(); // $blog_post;
$data["blog_post"] = $out['payload']['blogdata'];
$data["myfit_items"] = $myfit_items;
$data["practice_text1"] = $practice_text1;
$data["practice_text2"] = $practice_text2;
$data["country"] = MERMS_COUNTRIES;
$data["merms_faq"] = MERMS_FAQ;
$this->renderExtPage('merms-home', $data);
}
public function aboutus(){
global $myfit_items;
global $practice_text1;
global $practice_text2;
$data = array();
$out = $this->APIcall('GET','https://blogdata.chiefsoft.net/blogdata/mermsemr',[]); // https://blogdata.chiefsoft.net/
$data["blog_post"] = $out['payload']['blogdata'];
// $data["blog_post"] =$this->getBlogItems(); // $blog_post;
$data["myfit_items"] = $myfit_items;
$data["practice_text1"] = $practice_text1;
$data["practice_text2"] = $practice_text2;
$data["country"] = MERMS_COUNTRIES;
$data["merms_faq"] = MERMS_FAQ;
$this->renderExtPage('aboutus', $data);
}
//--------------------------------------------------------------------
}