Components
Three controller components for boilerplate you would otherwise re-implement.
| Component | Purpose |
|---|---|
| Common | Auto-trim POST data, common lifecycle helpers. |
| Mobile | User-agent based mobile detection. |
| RefererRedirect | Safe redirect-to-referer flow with allow-listing. |
Load from AppController:
php
public function initialize(): void {
parent::initialize();
$this->loadComponent('Tools.Common');
}