v0.1.4aab - Added update User backend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user