[TYPO3-ect] The Big Plan II

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Fri Jul 7 11:26:55 CEST 2006


Michael Scharkow wrote:
> essientially was built as a template language. What I hate about the
> snippets are the print and echo statements, which should rather be
> implicit.

TYPO3 doesn't do a direct output. So the symfony way is compatible.

function myForm( ... ){

  [...]

  $f = new forms_elements();


  $out .= $f->textField($name, $value, $label,$options);
  $out .= $f->radioButton($name, $value, $label,$checked, options);

  return $out;

}


However phpView of lib works with direct output and buffering. It is
orientated on zend components.


Maybe we should provide a configuration switch so that the functions can be
used in both ways.


function bufferedForm( ... ){

[...]

  ob_start();

  $f = new forms_elements($echo=TRUE);

  $f->textField($name, $value, $label, $options);
  $f->radioButton($name, $value, $label, $checked, $options);

  return ob_get_clean();

}




Regards








More information about the TYPO3-team-extension-coordination mailing list