FormClasses/info.php
2024-06-26 11:34:47 +03:00

25 lines
506 B
PHP

<?php
namespace src;
use src\debug\Debug;
use src\dto\InformationDTO;
use src\file_db_driver\FileDatabaseDriver;
require_once "vendor/autoload.php";
//$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();
require "views/search.php";