RoutesOrders module

Orders routes

URLs the Orders module answers, their parameters and the variables each view receives.

View Public site URLs and what their templates receive.

Templates view

GET /orders/orders listOrders

Retrieve a list of records and assign them to the template.

The template receives
VariableTypeDescription
$orders Collection<Order> Collection of Orders

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /orders/order/{id} showOrder

Show a single record

Path parameters id matches \d+

The template receives
VariableTypeDescription
$order Order Single Order record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /orders/order/{uid} showOrderByUid

Show a single record

Path parameters uid matches [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

The template receives
VariableTypeDescription
$order Order Single Order record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Only GET routes list their variables.