[Typo3-dev] Extension Form for FE Users doesn't work

Thomas Peterson info at thomas-peterson.de
Tue Jul 13 15:40:55 CEST 2004


Hello

This Code ar not work why?
_________________
 function main($content,$conf) {
  $this->conf=$conf;
  $this->pi_setPiVarDefaults();
  $this->pi_loadLL();


  $content='
   <strong>Form:</strong><BR>
   '.$this->cObj->FORM($this->mFormWidthButton()).'
  ';

  return $this->pi_wrapInBaseClass($content);
 }

   function mFormWidthButton() {

  $conf = array();

  $conf["dataArray."]["layout"] =
"<tr><td>###LABEL###</td><td>###FIELD###</td></tr>";
  $conf["dataArray."]["10."]["label"]="Test";
  $conf["dataArray."]["10."]["type"]="name=input";
  $conf["dataArray."]["10."]["value"]="Test";
  $conf["dataArray."]["20."]["type"]="submit=submit";
  $conf["dataArray."]["20."]["value"]="submit";

  /*$conf["image"] = "IMAGE";
     $conf["image."]["file"]=$img;*/



 return  $conf;

 }
______________

when i run then came in fe this:

______________
<form action="index.php?id=38" name="858a435f6ee1fb624e825e312516b1e6"
enctype="multipart/form-data" method="post"></form>
______________
Thanks.






More information about the TYPO3-dev mailing list