dbms/app/Controllers/Admin/Home.php
2025-04-28 19:06:09 +09:00

36 lines
995 B
PHP

<?php
namespace App\Controllers\Admin;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use App\Helpers\CommonHelper;
use App\Services\UserService;
class Home extends AdminController
{
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->layout = "admin";
$this->uri_path = "admin/";
$this->view_path = "admin/";
$this->title = "관리자페이지 메인";
$this->helper = new CommonHelper();
}
protected function getService(): UserService
{
if ($this->service === null) {
$this->service = new UserService();
}
return $this->service;
}
public function index(): string
{
helper(['form']);
return view('admin/welcome_message', ['viewDatas' => $this->getViewDatas()]);
}
}