Author |
Message |
Topic: Header.tpl Question |
Schaelle
Replies: 1
Views: 4233
|
Forum: General Posted: Sun May 15, 2005 9:41 pm Subject: Header.tpl Question |
I dont know if i understand you right, but i think:
in index.php and so set a smarty var like
$smarty->assign('phpself', 'index.php');
And in header.tpl
{if $phpself == 'in ... |
Topic: Fetch ist not more diminsional? |
Schaelle
Replies: 2
Views: 4960
|
Forum: General Posted: Sun May 15, 2005 8:26 pm Subject: Fetch ist not more diminsional? |
Thanks!
Or: Danke, jaja umständtlich ist besser (sprachlich bezogen ;D ) |
Topic: Fetch ist not more diminsional? |
Schaelle
Replies: 2
Views: 4960
|
Forum: General Posted: Sun May 15, 2005 3:16 pm Subject: Fetch ist not more diminsional? |
Hi,
ist the function fetch not more diminisonal?
I have the following situtation, but the second fetch's dont work if I use them with the first.
index.tpl
{$content}
start.tpl
... |
Topic: Smarty function as Constant |
Schaelle
Replies: 4
Views: 6366
|
Forum: General Posted: Sun May 15, 2005 2:10 pm Subject: Smarty function as Constant |
Hmm, no i cant use this in this form, but now i have an idea, thank you
i wanna post here again, if i have more troubles.
schaelle |
Topic: Smarty function as Constant |
Schaelle
Replies: 4
Views: 6366
|
Forum: General Posted: Sat May 14, 2005 7:48 pm Subject: Smarty function as Constant |
Hi,
I wanna try Methode 1.
But Method 2 is the way that i go now, and with method 1 i cant overget variables. |
Topic: Smarty function as Constant |
Schaelle
Replies: 4
Views: 6366
|
Forum: General Posted: Sat May 14, 2005 5:41 pm Subject: Smarty function as Constant |
Hi,
I want to set the Smarty function
# php
$smarty->setconst('header', '{include file="header.tpl"}');
# smarty
{header} {* Include header.tpl *& ... |
Topic: Parse first the Includes |
Schaelle
Replies: 0
Views: 2918
|
Forum: General Posted: Sun Dec 19, 2004 10:55 am Subject: Parse first the Includes |
Hi,
i have follow Template-Structure:
{if $error}...code....{/if}
[...]
{include_php file="script.php}
But the script.php is set the Var $error. ... |
Topic: include_php problem |
Schaelle
Replies: 5
Views: 10059
|
Forum: Language: German Posted: Sun Dec 19, 2004 10:42 am Subject: include_php problem |
Hmm, messju hast du nicht einen Link zu einer Plugin Erklärung, da dein Link ja zu ner Seite geführt wird, wo einem Empfohlen wird das zunutzen.
Gruß,
Schaelle |
Topic: echo ausgeben |
Schaelle
Replies: 11
Views: 24892
|
Forum: Language: German Posted: Sat Dec 18, 2004 10:30 pm Subject: echo ausgeben |
Kann mich T. nur anschließen, kann ja mal mein genaues Beispiel posten (in dem mehrere Errors möglich sind)
<?php
$smarty = new smarty;
$smarty->template_dir = 'templates/';
$smarty-&g ... |
Topic: Includes zuerst parsen |
Schaelle
Replies: 0
Views: 5678
|
Forum: Language: German Posted: Sat Dec 18, 2004 5:42 pm Subject: Includes zuerst parsen |
Hallo,
derzeit arbeite ich an einem Quiz, und diese Quiz.php wird in mitten eines Layouts (layout.tpl) per Smarty-PHP Include eingefügt, nur nun muss ich ÜBER dem quiz.php Include eine Abfrage für ei ... |
Topic: unable to read resource in XYZ |
Schaelle
Replies: 3
Views: 12012
|
Forum: Language: German Posted: Mon Jun 28, 2004 7:45 pm Subject: unable to read resource in XYZ |
Nein, hatte es nach einem Externen.Tutorial gemacht, da stand das nicht, mal reinmachen und testen, danke ...
...habe jetzt:
smarty.cfg.php
define('SMARTY_DIR', '/www/htdocs/tawhs/v1/template ... |
Topic: unable to read resource in XYZ |
Schaelle
Replies: 3
Views: 12012
|
Forum: Language: German Posted: Mon Jun 28, 2004 5:25 pm Subject: unable to read resource in XYZ |
Hi, möchte Smarty nutzen bekomme aber den Fehler:
Warning: Smarty error: unable to read resource: "index.tpl" in /www/htdocs/tawhs/v1/templates/smarty/Smarty.class.php on line 1083
Meine Daten
Ve ... |
|