RoutesSites module

Sites routes

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

View cdna-admin screens of this module.

Admin view

GET /cdna-admin/sites/add-client addClient

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$client Client Single (empty) Client record

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

GET /cdna-admin/sites/client/{id} editClient

Retrieve a single record and display the edit page for the record

Path parameters id matches \d+

The admin template receives
VariableTypeDescription
$client Client Retrieved Client record

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

GET /cdna-admin/sites/clients manageClients

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$clients Collection<Client> Collection of Clients

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

GET /cdna-admin/sites/add-site/{client.id} addSite

Add a new record. Assigns an empty record to the template.

Path parameters client.id matches \d+

The admin template receives
VariableTypeDescription
$site Site Single (empty) Site record

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

GET /cdna-admin/sites/site/{id} editSite

Retrieve a single record and display the edit page for the record

Path parameters id matches \d+

The admin template receives
VariableTypeDescription
$site Site Retrieved Site record

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

GET /cdna-admin/sites/sites/{client.id} manageSites

Retrieve available records and assign them to the template for editing.

Path parameters client.id matches \d+

The admin template receives
VariableTypeDescription
$sites Collection<Site> Collection of Sites

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

GET /cdna-admin/sites/add-site-data addSiteData

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$siteData SiteData Single (empty) SiteData record

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

GET /cdna-admin/sites/site-data/{id} editSiteData

Retrieve a single record and display the edit page for the record

Path parameters id matches \d+

The admin template receives
VariableTypeDescription
$siteData SiteData Retrieved SiteData record

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

GET /cdna-admin/sites/site-data manageSiteData

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$siteData Collection<SiteData> Collection of SiteData

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

GET /cdna-admin/sites/add-environment/{site.id} addEnvironment

Add a new record. Assigns an empty record to the template.

Path parameters site.id matches \d+

The admin template receives
VariableTypeDescription
$environment Environment Single (empty) Environment record

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

GET /cdna-admin/sites/environment/{id} editEnvironment

Retrieve a single record and display the edit page for the record

Path parameters id matches \d+

The admin template receives
VariableTypeDescription
$environment Environment Retrieved Environment record

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

GET /cdna-admin/sites/environments/{site.id} manageEnvironments

Retrieve available records and assign them to the template for editing.

Path parameters site.id matches \d+

The admin template receives
VariableTypeDescription
$environments Collection<Environment> Collection of Environments

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

Only GET routes list their variables.