This commit is contained in:
2024-06-26 12:42:42 +03:00
parent e28dfe172d
commit b9425ee8cf
10 changed files with 107 additions and 38 deletions

View File

@ -1,25 +1,20 @@
<?php
namespace src;
use src\debug\Debug;
use src\dto\InformationDTO;
use src\file_db_driver\FileDatabaseDriver;
use src\models\UserModel;
require_once "vendor/autoload.php";
ini_set("display_errors", true);
error_reporting(-1);
//$fileName = "Information.txt";
//$fileModeOpen = "a";
$fullInformation = new InformationDTO();
$fullInformation->load($_REQUEST);
$string = $fullInformation->toString();
$obj = new FileDatabaseDriver();
$obj->connect(__DIR__ . "/Information.txt");
//$obj->updateServiceInfo($string);
$obj->save($string);
$obj->close();
$user = new UserModel();
$user->load($_REQUEST);
$user->save();
require "views/search.php";