v0.1.5b Added the rest of the create user account function, update and getUserdata
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
require "../../bootstrap.php";
|
||||
|
||||
use Backend\Model\Post;
|
||||
use Backend\Model\User;
|
||||
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
|
||||
if(isset($_POST['id']))
|
||||
$data = Post::find($_POST['id']);
|
||||
$data = User::find($_POST['id']);
|
||||
else
|
||||
$data = Post::all();
|
||||
$data = User::all('id', 'name');
|
||||
echo $data;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user