Top

Commonly used variables


Introduce

Commonly Used Variables from the System

$site

$site retrieves all general configuration data from the system’s global config section. This includes site name, logo, contact info, SEO settings, and other global system values.

$site variable example

$config

$config holds all settings and configurations created when users drag and drop modules in the system. It contains customized options and config data specific to each module.

$config variable example

$data

$data is built based on the slug and composer selected when creating a page. It contains all related data for that page, such as blogs, products, or other linked content, enabling dynamic content display based on the current page’s configuration.

$data variable example

These variables are commonly used during module development and can be debugged with dd or var_dump to inspect their contents.