VENOM-10: added files x.tpl, x.php Modules
This commit is contained in:
parent
3d92f5347a
commit
f9dd03193e
33 changed files with 975 additions and 35 deletions
|
|
@ -5,6 +5,7 @@ namespace Modules;
|
|||
|
||||
|
||||
use Venom\Core\Config;
|
||||
use Venom\Core\DatabaseHandler;
|
||||
use Venom\Core\Module;
|
||||
use Venom\Helper\AdminHelper;
|
||||
use Venom\Routing\Route;
|
||||
|
|
@ -48,7 +49,8 @@ class RoleModule implements Module, Route
|
|||
|
||||
public function get()
|
||||
{
|
||||
AdminHelper::getResponse([
|
||||
//$req = DatabaseHandler::get()->getAll("SELECT * FROM roles");
|
||||
AdminHelper::sendResponse([
|
||||
'roles' => [
|
||||
['id' => 1, 'name' => 'Admin', 'icon' => 'vt-visibility'],
|
||||
['id' => 2, 'name' => 'Moderator', 'icon' => 'vt-edit'],
|
||||
|
|
@ -69,7 +71,7 @@ class RoleModule implements Module, Route
|
|||
|
||||
public function getById($id)
|
||||
{
|
||||
AdminHelper::getResponse([
|
||||
AdminHelper::sendResponse([
|
||||
'caseName' => 'ROLE_ADMIN',
|
||||
'id' => $id,
|
||||
'name' => 'Admin',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue