RestrictedController
class RestrictedController extends Controller
Implements support for the Restricted controller. Interactions that the user performs that are restricted will result in a relevant view being rendered.
Properties
| $request | from Controller | ||
| $view | from Controller |
Methods
Constructor for the parent Controller class. This constructor gets called when an instance of the child class is instantiated.
Runs when the object is constructed.
Renders page when a bad csrf token is detected.
This controller's default action.
Handles case when controller is not found and sets 404 response.
Handles cases when view is not found and sets 404 response.
Details
in
Controller at line 27
__construct(string $controller, string $action)
Constructor for the parent Controller class. This constructor gets called when an instance of the child class is instantiated.
at line 66
void
onConstruct()
Runs when the object is constructed.
at line 17
void
badTokenAction()
Renders page when a bad csrf token is detected.
at line 27
void
indexAction()
This controller's default action.
at line 37
void
noControllerAction(string $controllerName)
Handles case when controller is not found and sets 404 response.
at line 52
void
notFoundAction(string $actionName, string $controllerName)
Handles cases when view is not found and sets 404 response.