---
title: "Controller submit Variable nicht exsistent"
url: "https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent"
source: "typo3.net"
tags: ["Extensions","Extbase","Frage"]
created: "2017-10-02"
last_reply: "2017-10-09"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Controller submit Variable nicht exsistent

Extensions › Extbase · 3 Antworten · gestartet 2017-10-02

## Eröffnungsbeitrag

**Power-Poler** · 2017-10-02 · [Beitrag #1](https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent/1)

Guten Tag
Hänge an einem sehr nervigen Problem.
Und zwar versuche ich ein Form Element auf meiner Website auszulesen:

```html
<f:form method="post" object='{newEntry}' name='newEntry' action='submitForm' controller='Show'>
<f:form.textfield size="53" property='title'/>
<f:form.textarea rows="4" cols="40" property='bodytext'/>
<f:form.submit class="submit" value="Submit" />
</f:form>
```

```php
	/**
 * action submitForm
 *
 * @param MyVendor\Bulletinboard\Domain\Model\Entry $newEntry
 * @return void
 */
	public function submitFormAction(MyVendor\Bulletinboard\Domain\Model\Entry $newEntry = NULL) {
	
		if ($newEntry == NULL){
			$newEntry = GeneralUtility::makeInstance('MyVendor\Bulletinboard\Domain\Model\Entry');	
		}
		var_Dump($newEntry);
    }
}
```

Doch newEntry bleibt Leer. Egal was ich mache. Sobalt ich das "= NULL" rausnehme, bekomme ich folgende Fehlermeldung:
Oops, an error occurred!

Too few arguments to function MyVendor\Bulletinboard\Controller\ShowController::submitFormAction(), 0 passed and exactly 1 expected

Ich hoffe ihr könnt mir da noch helfen, ich stehe gerade völlig auf dem Schlauch.
Danke Schonmal
Mfg
Power-Poler

Edit:
Typo3 7.6.22

## Antworten

### [#2](https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent/2) · Power-Poler · 2017-10-02

Habs jetzt hinbekommen. Habe die Methode von submitFormAction in createAction umbenannt...
Die einziege Frage die sich mir noch stellt:
Warum?

### [#3](https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent/3) · Pingbeat · 2017-10-06

Hast du eventuell vergessen die Action der Pluginkonfiguration hinzuzufügen? create könnte dort schon drinn gewesen sein.

Schau dir mal die ext_localconf.php an und schau welche actions du dort eingetragen hast.

### [#4](https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent/4) · Power-Poler · 2017-10-09

Die Action wurde gefunden, sie befand sich in der localconf.
$newEntry
Wurde nicht übergeben. bis ich die Action in create umbenannt habe.

---

Quelle: „Controller submit Variable nicht exsistent“, typo3.net, https://www.typo3.net/d/126251-controller-submit-variable-nicht-exsistent
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
