mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
move contentid of cis4 menu root to ci config, remove unused controller components CisVue, modify CISVUE-Header to use config for cis4 menu root content id
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user