mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-12 08:52:07 +01:00
46 lines
976 B
PHP
46 lines
976 B
PHP
<?php
|
|
/**
|
|
* This file is part of Batflat ~ the lightweight, fast and easy CMS
|
|
*
|
|
* @author Paweł Klockiewicz <klockiewicz@sruu.pl>
|
|
* @author Wojciech Król <krol@sruu.pl>
|
|
* @copyright 2017 Paweł Klockiewicz, Wojciech Król <Sruu.pl>
|
|
* @license https://batflat.org/license
|
|
* @link https://batflat.org
|
|
*/
|
|
|
|
namespace Inc\Modules\Sample;
|
|
|
|
use Inc\Core\AdminModule;
|
|
|
|
/**
|
|
* Sample admin class
|
|
*/
|
|
class Admin extends AdminModule
|
|
{
|
|
/**
|
|
* Module navigation
|
|
* Items of the returned array will be displayed in the administration sidebar
|
|
*
|
|
* @return array
|
|
*/
|
|
public function navigation()
|
|
{
|
|
return [
|
|
$this->lang('index') => 'index',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* GET: /admin/sample/index
|
|
* Subpage method of the module
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
$text = 'Hello World';
|
|
return $this->draw('index.html', ['text' => $text]);
|
|
}
|
|
}
|