featured data
This commit is contained in:
@@ -135,9 +135,9 @@ class WrenchPlayGround extends BaseController
|
|||||||
];
|
];
|
||||||
|
|
||||||
$out["result_list"][] =[
|
$out["result_list"][] =[
|
||||||
"name" => " There is name 1",
|
"name" => "Featured educational from us",
|
||||||
"banner" => "If any banner is needed ",
|
"banner" => "If any banner is needed ",
|
||||||
"item_list" => $this->apiData()
|
"item_list" => $this->apiFeaturedData()
|
||||||
];
|
];
|
||||||
|
|
||||||
$out["result_list"][] =[
|
$out["result_list"][] =[
|
||||||
@@ -168,6 +168,19 @@ class WrenchPlayGround extends BaseController
|
|||||||
return $in;
|
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() {
|
private function apiData() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user