Zum Inhalt springen

USER_INT keine Rückgabe von der php-Funktion

Erstellt am 7. April 2006 · Noch keine Antworten

Tags: PHP, Frage

dorchen ·

Hallo Forum! Ich bekomme von meiner php-Funktion scheinbar nichts zurück. Ich habe es auch schon mit Beispielfunktionen versucht, auch dort ohne Erfolg. Was mache ich falsch?

TypoScript (aText wird ausgegeben, aTest nicht):

includeLibs.register = uploads/scripts/RCM/register.php

aTest = USER
aTest.userFunc = register->getFeGroupOptions 

aText = TEXT
aText.value=<option>hello typo</option>
plugin.tx_thmailformplus_pi1.markers.grouplist < aTest

PHP-Funktion:

<?php

class register {
 var $cObj;
	function getFeGroupOptions($content,$conf){
		/*
		$content="";
		$fe_groups = $GLOBALS["TYPO3_DB"]->exec_SELECTquery("title", "fe_groups","sorting");
		while($row = mysql_fetch_assoc($fe_groups)) {	
			$conent.='<option>'.$row["title"]."</option>";
		}
		*/
		$content = '<option>hello php</option>';
		echo "content ist $content";
		return $content;
	}
/* ... */
}

?>