[TYPO3-UG Italy] Help EXT
Gianluca
gladenko at gladenko.com
Mon May 15 20:02:09 CEST 2006
ciao ragazzi sto provando a creare delle extesioni.
Ho un problemino nel momento in cui nella mia classe di front-end
inserisco un'altra funzione, anche se non fa nulla, il front_end diventa
bianco.
Mi sapete dire il perché
la mia classe é questa
<?php
/***************************************************************
* Copyright notice
*
* (c) 2006 Gianluca Rettore <gladenko at gladenko.com>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Plugin 'Recupero Info Banca Dati Presidenza' for the 'gladenko'
extension.
*
* @author Gianluca Rettore <gladenko at gladenko.com>
*/
require_once(PATH_tslib.'class.tslib_pibase.php');
class tx_gladenko_pi1 extends tslib_pibase {
var $prefixId = 'tx_gladenko_pi1'; // Same as class name
var $scriptRelPath = 'pi1/class.tx_gladenko_pi1.php'; // Path to this
script relative to the extension dir.
var $extKey = 'gladenko'; // The extension key.
var $loadTCA ='';
var $flexformgTCA = '';
/**
* 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) {
$content = 'ciao' ;
return $content;
} }
function dillo() {
echo "riciao";
//$loadTCA = t3lib_div->loadTCA(tx.gladenko.exteranldb);
$loardTCA = t3lib_div->loadTCA(tx_gladenko_exteranldb) ;
$flexforrrmgTCA = t3lib_flexformtools->flexArray2Xml($loardTCA);
return $flexforrrmgTCA;
} }
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/
gladenko/pi1/class.tx_gladenko_pi1.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/gladenko/pi1/
class.tx_gladenko_pi1.php']);
}
?>
Grazie
More information about the TYPO3-UG-italy
mailing list