v0.1.4aab - Added update User backend
This commit is contained in:
parent
7e808b05b4
commit
d0e2900941
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
require "../../bootstrap.php";
|
||||
|
||||
use Backend\Model\Post;
|
||||
|
||||
if(isset($_POST['id'])){
|
||||
$post = Post::query()->find($_POST['id']);
|
||||
$post->title = $_POST['upTitle'];
|
||||
$post->description = $_POST['upDescription'];
|
||||
|
||||
if($post->update()){
|
||||
return 1;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue