Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 6 matches
Smarty Forum Index
Author Message
  Topic: smarty kills global variables?
hucky

Replies: 4
Views: 7203

PostForum: General   Posted: Tue Sep 07, 2004 8:56 pm   Subject: hei
hey are just invisible inside functions and methods in php like the display() method of $smarty.


??? can you give me an example how i can use this global variables?
and how invisible?

thx[/qu ...
  Topic: Smarty-Variablen innerhalb {php}-Tags verwenden
hucky

Replies: 5
Views: 22204

PostForum: Language: German   Posted: Sun Sep 05, 2004 5:38 pm   Subject: wiso
wiso willst du im php an diese variable???

ne andere frage:

$GLOB_ARR =& $this->get_template_vars('GLOB_ARR');
was bedeutet =& genau was machst du damit?

gruss
  Topic: PHP Variablen/Arrays haben keinen Wert nach {include_php}
hucky

Replies: 5
Views: 14993

PostForum: Language: German   Posted: Fri Sep 03, 2004 12:52 pm   Subject: ne...
geht nicht...

ich habe mehr herausgefunden die variablen sind ausserhalb der funktion da....
innerhalb der funktion nicht...
aber ich habe ein global $config gemacht innerhalb der funktion

mus ...
  Topic: PHP Variablen/Arrays haben keinen Wert nach {include_php}
hucky

Replies: 5
Views: 14993

PostForum: Language: German   Posted: Fri Sep 03, 2004 7:50 am   Subject: also
mein code...

im smarty template mache ich {include_php file=gallery/index.php}

der php code sieht so aus (index.php:

<?
require('start.inc.php');


if (isset($_GET

und jetzt ist d ...
  Topic: PHP Variablen/Arrays haben keinen Wert nach {include_php}
hucky

Replies: 5
Views: 14993

PostForum: Language: German   Posted: Thu Sep 02, 2004 3:41 pm   Subject: PHP Variablen/Arrays haben keinen Wert nach {include_php}
Hi zusammen

ich versuche mit {include_php} eine php datei zu includen in der ist ein array (z bsp $config[file][extenstion]) definiert aber nach dem includen ist das array leer und keine der variab ...
  Topic: {include_php file=$file}
hucky

Replies: 0
Views: 5745

PostForum: Smarty Development   Posted: Thu Sep 02, 2004 3:05 pm   Subject: {include_php file=$file}
Hi @ all

i try to include a php file in my smarty template.
in the php file is an array defined ($config[file][extension])

when i run the script the array has no values
why?

i won't rewrite ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP