Einzelnen Beitrag anzeigen
  #3  
Alt 17.11.06, 12:15
Benutzerbild von El Rolando
El Rolando El Rolando ist offline
Forum Newbie
 
Registriert seit: 26.07.06
Ort: Schweiz
Alter: 30
Beiträge: 34

Hi Dennis,

Danke für den Tipp, ich hab das mal geprüft!

In meinem PHP file gibt es weder ein "print" noch ein "echo" oder so!?
Und keines der PHP Files hat eine Leerzeile am Ende... !?! Zumindest die 3 Files nicht!?

Hier sonst mal mein PHP-File... vielleicht sieht ja jemand mehr als ich... bin noch nicht wirklich sattelfest in PHP...
PHP-Code:
<?php
/***************************************************************
*  Copyright notice
*
*  (c) 2006 Roland
*  All rights reserved
*........
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

require_once(PATH_tslib.'class.tslib_pibase.php');


/**
 * Plugin 'Test Extension' for the 'user_testext' extension.
 *
 * @author    Rolando
 * @package    TYPO3
 * @subpackage    user_testext
 */
class user_testext_pi1 extends tslib_pibase {
    var 
$prefixId 'user_testext_pi1';        // Same as class name
    
var $scriptRelPath 'pi1/class.user_testext_pi1.php';    // Path to this script relative to the extension dir.
    
var $extKey 'user_testext';    // The extension key.
    
    /**
     * The main method of the PlugIn
     *
     * @param    string        $content: The PlugIn content
     * @param    array        $conf: The PlugIn configuration
     * @return    The content that is displayed on the website
     */
    
function main($content,$conf)    {
        
$this->conf=$conf;
        
$this->pi_setPiVarDefaults();
        
$this->pi_loadLL();
        
$this->pi_USER_INT_obj=1;    // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
#################################################
    
if(isset($this->piVars['submit_button'])) {
     
// WHAT TO DO if content is submitted
      
t3lib_div::debug($this->piVars);
    } else {
#################################################
        
$content='
    
            <h3>This is a form:</h3>
            <form action="'
.$this->pi_getPageLink($GLOBALS['TSFE']->id).'" method="POST">
                <input type="hidden" name="no_cache" value="1">
                <input type="text" name="'
.$this->prefixId.'[DATA][fieldtitle]" value="">
                <textarea name="'
.$this->prefixId.'[DATA][description]"></textarea>
                <input type="submit" name="'
.$this->prefixId.'[submit_button]" value="Los, weg damit!">
            </form>
        '
;
    
        return 
$this->pi_wrapInBaseClass($content);
    }
}
}


if (
defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/user_testext/pi1/class.user_testext_pi1.php'])    {
    include_once(
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/user_testext/pi1/class.user_testext_pi1.php']);
}

?>
Zur Erklärung: Ich habe zur Verdeutlichung die Zeilen in denen der Debugmodus aktiviert wird zwischen ###-Linien geschrieben!
Diese sind im Original natürlich nicht vorhanden und wenn man diese Zeilen auskommentiert funktioniert es ja auch!?!?

Hmmm, sonst noch irgendwelche Tipps und/oder Ideen??

Danke und Grüsse

El Rolando

Geändert von El Rolando (25.02.07 um 13:13 Uhr).
Mit Zitat antworten