Dev-Umgebung: Kompatibilität für PHP 8.3 + Smarty 4.5.6
- Smarty 4.1.1 → 4.5.6 (behebt dynamic property deprecations) - Core-Klassen: #[\AllowDynamicProperties] für Admin_role, base, Config, Customer, Customer_group, CustomerGroups, Item, Structure, website - website.class.php: counts[parent_id] initialisieren vor ++ (PHP 8.1) - layout.class.php: HTTP_ACCEPT_LANGUAGE mit isset-Guard - website_init.php: session_status()-Check vor session_start - .htaccess: HTTPS-Redirect via X-Forwarded-Proto (statt SERVER_PORT) - themes/easyshop_advanced/media/: Parent-Theme-Assets nachgezogen - .gitignore: smarty.4.1.1.bak ausschließen
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Variables
|
||||
|
||||
Smarty has several types of variables. The type of the
|
||||
variable depends on what symbol it is prefixed or enclosed within.
|
||||
|
||||
- [Variables assigned from PHP](language-assigned-variables.md)
|
||||
- [Variables loaded from config files](language-config-variables.md)
|
||||
- [{$smarty} reserved variable](language-variables-smarty.md)
|
||||
|
||||
Variables in Smarty can be either displayed directly or used as
|
||||
arguments for [functions](../language-basic-syntax/language-syntax-functions.md),
|
||||
[attributes](../language-basic-syntax/language-syntax-attributes.md) and
|
||||
[modifiers](../language-modifiers/index.md), inside conditional expressions, etc.
|
||||
To print a variable, simply enclose it in the
|
||||
[delimiters](../../programmers/api-variables/variable-left-delimiter.md) so that it is the only thing
|
||||
contained between them.
|
||||
|
||||
```smarty
|
||||
{$Name}
|
||||
|
||||
{$product.part_no} <b>{$product.description}</b>
|
||||
|
||||
{$Contacts[row].Phone}
|
||||
|
||||
<body bgcolor="{#bgcolor#}">
|
||||
```
|
||||
|
||||
## Scopes
|
||||
You can assign variables to specific [variable scopes](language-variable-scopes.md).
|
||||
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> An easy way to examine assigned Smarty variables is with the
|
||||
> [debugging console](../chapter-debugging-console.md).
|
||||
|
||||
Reference in New Issue
Block a user