mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
37 lines
734 B
PHP
37 lines
734 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class CisVue extends Auth_Controller
|
|
{
|
|
|
|
/**
|
|
* Object initialization
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct([
|
|
'Menu' => [self::PERM_LOGGED]
|
|
]);
|
|
}
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
// Public methods
|
|
|
|
/**
|
|
*/
|
|
public function Menu()
|
|
{
|
|
$this->load->model('content/Content_model', 'ContentModel');
|
|
$menu_contentID = $this->ContentModel->getMenuContentID();
|
|
$result = $this->ContentModel->getMenu($menu_contentID, getAuthUID());
|
|
$menu = getData($result) ?? (object)['childs' => []];
|
|
|
|
$this->outputJsonSuccess($menu);
|
|
}
|
|
|
|
}
|