2024-06-14 15:55:36 +03:00
|
|
|
<?php
|
|
|
|
|
2024-06-26 11:34:47 +03:00
|
|
|
use src\dto\InformationDTO;
|
2024-06-14 15:55:36 +03:00
|
|
|
use src\Processing;
|
|
|
|
|
|
|
|
require_once "vendor/autoload.php";
|
|
|
|
|
2024-06-26 12:42:42 +03:00
|
|
|
ini_set("display_errors", true);
|
|
|
|
error_reporting(-1);
|
2024-06-14 15:55:36 +03:00
|
|
|
|
2024-06-26 12:42:42 +03:00
|
|
|
$user = new \src\models\UserModel();
|
2024-06-14 15:55:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
//$res = $rep->find([$_REQUEST['key'] => $_REQUEST['result_search']])->limit(7)->all();
|
2024-06-26 11:10:17 +03:00
|
|
|
|
|
|
|
//$res = $rep->find($_REQUEST)->limit(10)->all();
|
2024-06-26 12:42:42 +03:00
|
|
|
$res = $user->find(['name' => ['Анжела']])->limit(10)->all();
|
2024-06-14 15:55:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
$json = new Processing();
|
2024-06-26 12:42:42 +03:00
|
|
|
$infArr = $json->createJsonArray($user->labels(), $res, "form1");
|
2024-06-14 15:55:36 +03:00
|
|
|
|
|
|
|
$table = new \Itguild\Tables\ListJsonTable($infArr);
|
|
|
|
$table->create();
|
|
|
|
$table->render();
|