Categories > [German] Deutscher TBS Support >

Templat Variable in einer Methode

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Stephan Krauss
Date: 2009-09-18
Time: 16:12

Templat Variable in einer Methode

Hallo !

Ich habe eine Anfängerfrage. Ich möchte TBS aus einer Methode einer Klasse heraus verwenden.

...

public function aktion1(){
       
        global $werte;
       
        $tbs =& new clsTinyButStrong ;
       
        $werte = 'Hallo Welt !';
       
        $tbs->LoadTemplate('template/test1.htm') ;
       
   
       
        $tbs->Show();
       
    }

...

Kann ich die Templatvariable $werte auch ohne globalisieren verwenden ?

Gruß Stephan