---
title: "Wert einer Variable aus Localconfiguration einer Typoscript Variable zuweisen"
url: "https://www.typo3.net/d/120496-wert-einer-variable-aus-localconfiguration-einer-typoscript-variable-zuweisen"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","TYPO3 6.x"]
created: "2015-07-09"
last_reply: "2015-07-09"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Wert einer Variable aus Localconfiguration einer Typoscript Variable zuweisen

TYPO3 › TypoScript · 0 Antworten · gestartet 2015-07-09

## Eröffnungsbeitrag

**Ttognil** · 2015-07-09 · [Beitrag #1](https://www.typo3.net/d/120496-wert-einer-variable-aus-localconfiguration-einer-typoscript-variable-zuweisen/1)

Ich habe in der Localconfiguration.php ein Setting abgelegt, welches ich im Typoscript wiederum einer anderen Variable zuweisen möchte.

Beispiel Inhalt aus Localconfiguration.php:

```php
<?php
return array(
        'CDN' => array(
        	'HOST' => 'cdn.domain.com'
        )
);
```

Ich weiß, dass folgender Code nicht funktioniert... er soll nur zum Verständnis dienen, was ich am ende zuweisen möchte.

```typoscript
host = $LOCALCONFIGURATION['CDN']['HOST']
```

Hat jemand eine Idee, wie es richtig geht?

---

Quelle: „Wert einer Variable aus Localconfiguration einer Typoscript Variable zuweisen“, typo3.net, https://www.typo3.net/d/120496-wert-einer-variable-aus-localconfiguration-einer-typoscript-variable-zuweisen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
