meraproject/themes/merakomis/post/controller.php

26 lines
465 B
PHP
Raw Permalink Normal View History

<?
namespace controller\themes\merakomis\post;
use ms\ms\structure\msControllerTable;
use themes\merakomis\Emp;
use themes\merakomis\Post;
use themes\merakomis\structure\merakomisControllerTable;
class Api extends merakomisControllerTable {
static $class = 'themes\merakomis\Post';
static function remove(){
$res = [];
if(Emp::$IS_AUTH) {
Post::deleteByID(intval($_POST['id']));
}
echo je($res);
}
}