From 1e3f37d478a9800781e5ef0e77cb4463ec4022df Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 12 Jul 2024 16:01:05 -0400 Subject: [PATCH] featured data --- www-api/app/Controllers/WrenchPlayGround.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchPlayGround.php b/www-api/app/Controllers/WrenchPlayGround.php index 78ff1874..873fc48b 100644 --- a/www-api/app/Controllers/WrenchPlayGround.php +++ b/www-api/app/Controllers/WrenchPlayGround.php @@ -135,9 +135,9 @@ class WrenchPlayGround extends BaseController ]; $out["result_list"][] =[ - "name" => " There is name 1", + "name" => "Featured educational from us", "banner" => "If any banner is needed ", - "item_list" => $this->apiData() + "item_list" => $this->apiFeaturedData() ]; $out["result_list"][] =[ @@ -168,6 +168,19 @@ class WrenchPlayGround extends BaseController return $in; } + private function apiFeaturedData() { + + $total = 6; + for ($i = 0; $i < $total; $i++) { + $key = sprintf("%05d", $i); + $data["item"][] = array( + "banner" => "I have no idea", + "title" => "This is faq title dummy text ".$key, + "description" => "Random gibberish text to use in web pages, site templates and in typography demos. Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. ".$key, + ); + } + return $data; + } private function apiData() {