Game-Jaming/Backend/Controllers/Admin/NewGameJam.php

21 lines
452 B
PHP
Raw Normal View History

2021-03-09 09:45:05 +00:00
<?php
require "../../../bootstrap.php";
use Backend\Models\GameJam;
if(isset($_SESSION['Admin'])){
if(isset($_POST['NewGameJam'])){
$gameJam = New GameJam();
$gameJam->name = $_POST["gameJam_name"];
$gameJam->start_time = $_POST["start_time"];
$gameJam->end_time = $_POST["end_time"];
$gameJam->description = $_POST["description"];
if($gameJam->save()){
}
else{
}
}
}