UserFrosting API

AdminController extends SimpleController

AdminController Class.

Controller class for /dashboard URL. Handles admin-related activities

Tags
author

Alex Weissman (https://alexanderweissman.com)

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

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
mixed

clearCache()

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
mixed

getModalConfirmClearCache()

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.

Return values
mixed

Search results