[TYPO3-german] zusätzliche Funktion in class tx_extensionname_pi1 extends tslib_pibase {

Christian Wolff chris at connye.com
Wed Feb 29 16:44:10 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 23.02.2012 21:27, schrieb Lars Möller:
> 
> 
> aber damit geht es: $cObj=t3lib_div::makeInstance('tslib_cObj');
> 
> best lars

Hi lars hastdu in deiner classe die property variable definiert
class tx_extensionname_pi1 extends tslib_pibase {
	var $local_cObj=false; // hier muss die variable definiert sein
	test(){
		$this->local_cObj=t3lib_div::makeInstance('tslib_cObj');
	}
}


> 
> 
> Am 23.02.12 20:49, schrieb Lars Möller:
>> 
>> Hallo Liste,
>> 
>> ich möchte gerne auf eine zusätzliche Funktion innerhalb meiner 
>> Extension zurückgreifen. Diese liegt auf der Ebene der function
>> main()
>> 
>> also zb: class tx_extensionname_pi1 extends tslib_pibase { 
>> function main($content, $conf)    { return test(); }
>> 
>> function test(){ return 'test' }
>> 
>> 
>> Was auch wunderbar funktioniert. Allerdings kann ich in der
>> zweiten Funktion test() keine Links erzeugen. ich kann auch nicht
>> damit erweitern: $this->local_cObj =
>> t3lib_div::makeInstance("tslib_cObj"); um die Links zu erzeugen.
>> 
>> Hat Jemand eine Idee dazu.
>> 
>> besten Gruß lars
>> 
>> 
>> _______________________________________________ TYPO3-german
>> mailing list TYPO3-german at lists.typo3.org 
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


- -- 
Christian Wolff, Berlin
webdeveloper, tech-loving geek and typo3 enthusiast
http://www.connye.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEARECAAYFAk9OR8oACgkQIcCaXPh/JHF5ggCg6G4N3JBwku+ynmn0Sf+1zh2m
9gYAn0OxGJWgdVJCvmkTtgeRVjQ47bY+
=zvtL
-----END PGP SIGNATURE-----


More information about the TYPO3-german mailing list