[TYPO3-UG Italy] Help EXT
jh
jh at venetowebdesign.it
Mon May 15 20:55:54 CEST 2006
Ciao,
ovvio che non funzia perche usi delle classe backend in un frontent
context. Non può funzionare.
Le righe
> var $loadTCA ='';
> var $flexformgTCA = '';
fanno decisamente parte del backend.
In poi il commando "echo" non va bene li. Metti tutto in una
variabile ( p. esemp. $content ),
alla fine metti
return $content;
per crearti l'output al posto giusto.
Prova crearti una estensione "vuota", nel codice che venisse creato
dal kickstarter c'é insomme tutto che ti serve per creare l'output.
Se vuoi usare flexforms dai una occhiata li:
http://wiki.typo3.org/index.php/Extension_Development%
2C_using_Flexforms#Modify_ext_tables.php
ciao
Jan
On 15.05.2006, at 20:02, Gianluca wrote:
> 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
> _______________________________________________
> TYPO3-UG-italy mailing list
> TYPO3-UG-italy at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy
More information about the TYPO3-UG-italy
mailing list