Zitat von
clavis
Ganz banal über den Formulargenerator (mit efg).
OK. Und wie lässt Du Deine Funktionen ansprechen? (Woher sind Deine "in allen Beispielen"?)
Ich habe eben mal eine einem Beispiel von mir nachgeschaut. Dort mache ich es via
formSubmitted-Hook:
PHP-Code:
// config/config.php
$GLOBALS['TL_HOOKS']['processFormData'][] = array('MyHooks', 'formSubmitted');
PHP-Code:
// classes/MyHooks.php
class MyHooks extends Frontend {
formSubmitted($arrPost, $arrForm, $arrFiles) {
if ($arrForm['id'] == '42') { ... }
}
}
Lesezeichen