25 lines
577 B
PHP
25 lines
577 B
PHP
<?php
|
|
|
|
use src\dto\InformationDTO;
|
|
use src\Processing;
|
|
|
|
require_once "vendor/autoload.php";
|
|
|
|
ini_set("display_errors", true);
|
|
error_reporting(-1);
|
|
|
|
$user = new \src\models\UserModel();
|
|
|
|
|
|
//$res = $rep->find([$_REQUEST['key'] => $_REQUEST['result_search']])->limit(7)->all();
|
|
|
|
//$res = $rep->find($_REQUEST)->limit(10)->all();
|
|
$res = $user->find(['name' => ['Анжела']])->limit(10)->all();
|
|
|
|
|
|
$json = new Processing();
|
|
$infArr = $json->createJsonArray($user->labels(), $res, "form1");
|
|
|
|
$table = new \Itguild\Tables\ListJsonTable($infArr);
|
|
$table->create();
|
|
$table->render(); |