Zum Inhalt springen

HTML einbindung funkt. nicht

Erstellt am 23. Juli 2012 · 1 Antwort · letzte Antwort am 24. Juli 2012

Tags: Frage

neridonk ·

Hi,
könnt ihr mir verraten warum meine HTML template einbidung nicht funktioniert?

class tx_sortext_pi1 extends tslib_pibase {
    var $prefixId      = 'tx_sortext_pi1';        // Same as class name
    var $scriptRelPath = 'pi1/class.tx_sortext_pi1.php';    // Path to this script relative to the extension dir.
    var $extKey        = 'sortext';    // The extension key.
    var $pi_checkCHash = TRUE;
    var $template;

    /**
     * The main method of the Plugin.
     *
     * @param string $content The Plugin content
     * @param array $conf The Plugin configuration
     * @return string The content that is displayed on the website
     */
     
    
    
    public function main($content, array $conf) {
        $this->conf = $conf;
        $this->pi_setPiVarDefaults();
        $this->pi_loadLL();
         
    
        

        // $this->cObj->fileResource('sortext/template.html');

        $this->template=$this->cObj->fileResource('EXT:sortext/template.html');

  $sub['###LABEL1###'] = 'label eins';
  $sub['###LABEL2###'] = 'label zwoi';
  

  $tmpl = $this->cObj->substituteMarkerInObject($tmpl,$sub,'','');
  

  return $tmpl;    
        
        
        
        

  
        // $content = $this->Testmethode();
        
        return $this->pi_wrapInBaseClass($tmpl);
    }
}
    
    
 



if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/sortext/pi1/class.tx_sortext_pi1.php'])) {
    include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/sortext/pi1/class.tx_sortext_pi1.php']);
}

?>

template.html lieg in typo3conf\ext\sortext <- ordner

sollte doch eigentlich funktioieren:o