AdminController extends SimpleController
AdminController Class.
Controller class for /dashboard URL. Handles admin-related activities
Tags
Table of Contents
$ci | ContainerInterface | |
---|---|---|
pageDashboard() | Renders the admin panel dashboard. | mixed |
clearCache() | Clear the site cache. | mixed |
getModalConfirmClearCache() | Renders the modal form to confirm cache deletion. | mixed |
__construct() | Constructor. | mixed |
Properties
$ci
protected
ContainerInterface
$ci
Methods
pageDashboard()
Renders the admin panel dashboard.
public
pageDashboard(
$request :
ServerRequestInterface
, $response :
ResponseInterface
, $args :
array
)
: mixed
Parameters
- $request : ServerRequestInterface
- $response : ResponseInterface
- $args : array
Return values
mixedclearCache()
Clear the site cache.
public
clearCache(
$request :
ServerRequestInterface
, $response :
ResponseInterface
, $args :
array
)
: mixed
This route requires authentication. Request type: POST
Parameters
- $request : ServerRequestInterface
- $response : ResponseInterface
- $args : array
Return values
mixedgetModalConfirmClearCache()
Renders the modal form to confirm cache deletion.
public
getModalConfirmClearCache(
$request :
ServerRequestInterface
, $response :
ResponseInterface
, $args :
array
)
: mixed
This does NOT render a complete page. Instead, it renders the HTML for the modal, which can be embedded in other pages. This page requires authentication. Request type: GET
Parameters
- $request : ServerRequestInterface
- $response : ResponseInterface
- $args : array
Return values
mixed__construct()
Constructor.
public
__construct(
$ci :
ContainerInterface
)
: mixed
Parameters
- $ci : ContainerInterface
The global container object, which holds all your services.