|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bweichel Smarty n00b
Joined: 14 Oct 2004 Posts: 2
|
Posted: Thu Oct 14, 2004 1:33 pm Post subject: Iframe |
|
|
Hallo,
ich möchte Smarty mit IFrames verwenden. In meiner Seite die ich mit Smarty erzeuge habe ich einen IFrame eingebaut. Dieser Iframe beinhaltet wiederum gewissen Textpassagen die ich austauschen möchte. Wie kann ich mittels Smarty darauf zugreifen...???
{include file="inhalt.tpl"}
habe ich bereits ausprobiert, aber das geht über ein IFrame nicht... Kann mir jemand eine Lösung veraten oder zumindest eine Anregung geben?
Vielen Dank!
Gruß Björn
?>[/php] |
|
Back to top |
|
kills Smarty Elite
Joined: 28 May 2004 Posts: 493
|
Posted: Thu Oct 14, 2004 2:18 pm Post subject: |
|
|
hm ich denke, das du im source des iframes in der source dein PHP Script mit den entsprechenden Parametern reinschreiben musst.
z.b.
Code: |
<iframe src="index.php?content={ $inhalt }" width="90%" height="400">
|
deine index.php muss dann natürlich die variable auswerten und daraus den entsprechenden source generieren |
|
Back to top |
|
|
|
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
|