Skip to content

Components

Three controller components for boilerplate you would otherwise re-implement.

ComponentPurpose
CommonAuto-trim POST data, common lifecycle helpers.
MobileUser-agent based mobile detection.
RefererRedirectSafe redirect-to-referer flow with allow-listing.

Load from AppController:

php
public function initialize(): void {
    parent::initialize();
    $this->loadComponent('Tools.Common');
}

Released under the MIT License.