Issue Feature Closed

#17667Make FORM capabele to set multidimensional vars automatically

Peter Russ 10/10/07, 18:58 updated 09/06/13, 09:23

Description

Situation:
Correct naming for vars of a extension requires to use the extsions prefixId to receive the vars automatically. But if you uses this convention to get a FORM in your extension rendered, FORMs will not be able to revieve and display this vars automatically.

After dicussion on dev I decided to extend t3lib_content and add the new required function there. IMHO it would make more to add this to t3lib_div as a static as this might be also helpful for BE or extension developement.

But life is to short to do it by my own…

This new function checks a multidimensional key can be found in an array
e.g.
$key=array(‘tx_myextension’ => array(‘var1’ => 0) or
$key=parse_str(‘tx_myextension[var1]0‘)

against any array, e.g $_POST or $_GET and is capable to return either true/false or the value if found.

Works also for plain keys ;-)
(issue imported from #M6494)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.