This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/app/Controllers/Manage/Controller.php

42 lines
804 B
PHP
Raw Normal View History

2016-07-31 19:36:13 +00:00
<?php
/**
* Holds the base controller for manage.
* @package Sakura
*/
namespace Sakura\Controllers\Manage;
use Sakura\Controllers\Controller as BaseController;
use Sakura\Template;
/**
* Base management controller (which other controllers should extend on).
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class Controller extends BaseController
{
2016-08-05 02:35:37 +00:00
/**
* Constructor.
*/
2016-07-31 19:36:13 +00:00
public function __construct()
{
$navigation = $this->navigation();
Template::vars(compact('navigation'));
}
2016-08-05 02:35:37 +00:00
/**
* Generates the navigation.
* @return array
*/
2016-12-04 16:33:52 +00:00
public function navigation(): array
2016-07-31 19:36:13 +00:00
{
$nav = [];
// Overview
$nav["Overview"]["Index"] = route('manage.overview.index');
return $nav;
}
}