<?php

namespace App\Controllers\Admin;

use App\Controllers\MVController;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;

use App\Traits\AuthTrait;

abstract class AdminController extends MVController
{
    use AuthTrait;
    public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
    {
        parent::initController($request, $response, $logger);
        $this->root = "Admin/";
        $this->layout     = "admin";
        $this->session    = $this->session_AuthTrait();
        $this->action_form = FORMS['MODAL'];
    }
}
