learn more page
This commit is contained in:
@@ -12,6 +12,33 @@ class WrenchFaq extends BaseController
|
||||
protected $db;
|
||||
public $con_name = 'wrench_blog';
|
||||
|
||||
public function learnMoreUser(){
|
||||
$total = 4;
|
||||
$data=[];
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
|
||||
$msg='';
|
||||
$msgS = "<div> 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. </div>";
|
||||
|
||||
$txL = rand(1,5);
|
||||
for($ii=1; $ii<$txL; $ii++){
|
||||
$msg = $msg.$msgS;
|
||||
}
|
||||
|
||||
$data["result_list"][] = array(
|
||||
"uid" => '0000-0000-0000-000'. $i,
|
||||
"topic" => "Topic ".$i,
|
||||
"contents" => $msg
|
||||
);
|
||||
}
|
||||
|
||||
return $this->summaryReturnData($in,$data); //json_encode( $final_out );
|
||||
}
|
||||
|
||||
public function apigate(){
|
||||
return json_encode( $this->apiData() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user