* @author Wojciech Król * @copyright 2017 Paweł Klockiewicz, Wojciech Król * @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]); } }