Documentation

PageLinkController extends AppController
in package

PageLink Controller Handles static pages, terms, privacy policy, and contact/FAQ forms.

Table of Contents

Methods

about()  : mixed
About / Road Trip info page.
beforeRender()  : mixed
contact()  : Response|null
Contact page and form handling.
cookies()  : mixed
Cookies policy page.
faq()  : Response|null
FAQ page and question form handling.
initialize()  : void
Initialization hook method.
privacy()  : mixed
Privacy policy page.
terms()  : mixed
Terms of Service page (CGU).
_sendEmail()  : bool
Helper method to send emails (Skinny Controller approach).

Methods

beforeRender()

public beforeRender(EventInterface $event) : mixed
Parameters
$event : EventInterface

contact()

Contact page and form handling.

public contact() : Response|null
Return values
Response|null

Redirects on success, renders otherwise.

faq()

FAQ page and question form handling.

public faq() : Response|null
Return values
Response|null

Redirects on success, renders otherwise.

initialize()

Initialization hook method.

public initialize() : void

Allows unauthenticated users to access all informational pages.

_sendEmail()

Helper method to send emails (Skinny Controller approach).

private _sendEmail(array<string|int, mixed> $data, string $type) : bool
Parameters
$data : array<string|int, mixed>

Form data from the user request.

$type : string

The context of the email ('contact' or 'faq').

Return values
bool

Returns true if the email was successfully sent, false otherwise.


        
On this page

Search results