class HTMLController extends Controller

Properties

bool $twigReady Whether twig has been prepared

Methods

Response
callAction(string|null $action = null)

Call the controller's action specified by the $parameters array

static FlashBag
getFlashBag()

Get the session's flash bag

static bool
canSee(Model $model)

Find out whether the currently logged in user can see a model

Details

at line line 85
Response callAction(string|null $action = null)

Call the controller's action specified by the $parameters array

Parameters

string|null $action The action name to call (e.g. show), null to invoke the default one

Return Value

Response The action's response

at line line 168
static FlashBag getFlashBag()

Get the session's flash bag

Return Value

FlashBag

at line line 183
static bool canSee(Model $model)

Find out whether the currently logged in user can see a model

Apart from the permissions of the user, this method takes the request query into consideration to find out if the user wants to see deleted models or not.

Parameters

Model $model Model Model in question

Return Value

bool