mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 20:59:28 +00:00
39 lines
744 B
PHP
39 lines
744 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' => 'user:r'
|
|
]);
|
|
|
|
// Loads authentication library and starts authentication
|
|
$this->load->library('AuthLib');
|
|
}
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
// Public methods
|
|
|
|
/**
|
|
*/
|
|
public function Menu()
|
|
{
|
|
$this->load->model('content/Content_model', 'ContentModel');
|
|
$result = $this->ContentModel->getMenu(6739, get_uid());
|
|
$menu = getData($result) ?? (object)['childs' => []];
|
|
|
|
$this->outputJsonSuccess($menu);
|
|
}
|
|
|
|
}
|