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

37 lines
698 B
PHP

<?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
{
public function __construct()
{
$navigation = $this->navigation();
Template::vars(compact('navigation'));
}
public function navigation()
{
$nav = [];
// Overview
$nav["Overview"]["Index"] = route('manage.overview.index');
return $nav;
}
}