[TYPO3-UG Italy] Help EXT

Gianluca gladenko at gladenko.com
Tue May 16 00:25:40 CEST 2006


Grazie ma toglimi una curiosita io creo un backend che inserisce dei 
record in una tabella!
Per recuperare i dati cosa faccio una queri al database o ce un modo per 
accedere al backend.
Ho visto il codice del blog e mi sembrava di capire che tramite il 
flexform recupera i dati ma che il flexform me lo devo creare a mano!
Dimmi se ho capito giusto tanto per sapere se sono sulla buona strada.
Purtroppo trovo i manuali un tantino dispersivi!

Grazie!




In <mailman.5006.1147719357.7950.typo3-ug-italy at lists.netfielders.de> jh  
wrote:
> This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
> --Apple-Mail-17--239053877
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
> 	charset=ISO-8859-1;
> 	delsp=yes;
> 	format=flowed
> 
> Ciao,
> 
> ovvio che non funzia perche usi delle classe backend in un frontent 
> =20 context. Non pu=F2 funzionare. Le righe
>> 	var $loadTCA =3D'';
>> 	var $flexformgTCA =3D '';
> fanno decisamente parte del backend.
> 
> In poi il commando "echo" non va bene li. Metti tutto in una =20
> 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 
> =20 dal kickstarter c'=E9 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%=20 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 =20
>> diventa
>> bianco.
>>
>> Mi sapete dire il perch=E9
>>
>> la mia classe =E9 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 =20
>> 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 =3D 'tx_gladenko_pi1';		// Same as class =
> name
>>
>> 	var $scriptRelPath =3D 'pi1/class.tx_gladenko_pi1.php';	// Path =
> to this
>> script relative to the extension dir.
>>
>> 	var $extKey =3D 'gladenko';	// The extension key.
>> =09
>> 	var $loadTCA =3D'';
>> 	var $flexformgTCA =3D '';
>> =09
>> 	/**
>> =09
>> 	 * The main method of the PlugIn
>> =09
>> 	 *
>> =09
>> 	 * @param	string		$content: The PlugIn content
>> =09
>> 	 * @param	array		$conf: The PlugIn configuration
>> =09
>> 	 * @return	The content that is displayed on the website
>> =09
>> 	 */
>> =09
>> =09
>> =09
>> 	function main($content,$conf)	{
>>
>> 	$content =3D 'ciao' ;=09
>> 	return $content;
>> =09
>> }}}
>> =09
>> 	function dillo() {
>> 	echo "riciao";
>> 	//$loadTCA =3D t3lib_div->loadTCA(tx.gladenko.exteranldb);
>>   $loardTCA =3D t3lib_div->loadTCA(tx_gladenko_exteranldb) ;
>> =09
>>
>> 	$flexforrrmgTCA =3D =
> t3lib_flexformtools->flexArray2Xml($loardTCA);
>> 	return $flexforrrmgTCA;
>>
>> }}}
>> =09
>> =09
>>
>>
>>
>> }
>>
>> if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']
>> =20 ['ext/ gladenko/pi1/class.tx_gladenko_pi1.php'])	{
>>
>> 	=
> include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/gladenko/=20
>> 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
> 
> 
> --Apple-Mail-17--239053877--
> 



More information about the TYPO3-UG-italy mailing list