[TYPO3-german] t3 erweiterung problem bei der anleitung form_extension_tut

Chi Hoang chibox at gmail.com
Sat Oct 7 01:51:37 CEST 2006


Christian Hensel schrieb:
> if(isset'.$this->piVars{submit_button']){
>     t3lib_div::debug($this->piVars);
> }

Es muß heissen:

if(isset($this->piVars['submit_button'])){
      t3lib_div::debug($this->piVars);
}

Komplettes Skript:

function main($content,$conf) {

   $this->conf=$conf;
   $this->pi_setPiVarDefaults();
   $this->pi_loadLL();

   // WHAT TO DO if content is submitted
   if(isset($this->piVars['submit_button'])){
      t3lib_div::debug($this->piVars);
   }

   $content='
    <h3>This is a form:</h3>
    <form action="'.$this->pi_getPageLink($GLOBALS['TSFE']->id).'" 
method="POST">

...
...

}

Du hast in 5 Zeilen Code 3 Fehler. Das ist ziemlich viel. Ich würde Dir 
vorschlagen jetzt ins Bett zu gehen. Oder den Beruf zu wechseln. :p



More information about the TYPO3-german mailing list