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

Variablen an php-Script übergeben

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
anolis
Smarty n00b


Joined: 10 Mar 2005
Posts: 2

PostPosted: Thu Mar 10, 2005 10:18 am    Post subject: Variablen an php-Script übergeben Reply with quote

Hallo Leute,
wie kann ich bei Smarty Variablen an ein php-Script übergeben welches mit "include_php file" eingebunden ist.

MFG anolis
Back to top
View user's profile Send private message Visit poster's website
coach
Smarty Regular


Joined: 03 Jun 2004
Posts: 65

PostPosted: Fri Mar 11, 2005 12:55 pm    Post subject: Reply with quote

Hallo anolis,

in der Doku http://smarty.php.net/manual/de/language.function.include.php.php steht folgendes:

Quote:

Das Objekt '$smarty' kann in dem eingebundenen PHP-Script über '$this' angesprochen werden.


D.h. du kannst auf alle Variablen der Smarty-Instanz zugreifen.
Mach einfach mal im includierten Php

Code:
var_dump($this);


Coach
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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