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 27 matches
Smarty Forum Index
Author Message
  Topic: A Chinese [simplified] Smarty Manual [CHM & HTML]
ShenKong

Replies: 4
Views: 13491

PostForum: General   Posted: Tue Apr 13, 2004 4:21 am   Subject: A Chinese [simplified] Smarty Manual [CHM & HTML]
It is not me translated this Manual Embarassed
I know somebody who in phpx.com translated it , I often there and find this . There are many people attend this ZH edition , And I don't know them well . ...
  Topic: A good Smarty tutorial [Chinese.tw]
ShenKong

Replies: 1
Views: 33624

PostForum: Article Discussions   Posted: Tue Apr 13, 2004 3:49 am   Subject: A good Smarty tutorial [Chinese.tw]
http://www.php5.idv.tw/documents/smarty/smarty20040209.htm
  Topic: A Chinese [simplified] Smarty Manual [CHM & HTML]
ShenKong

Replies: 4
Views: 13491

PostForum: General   Posted: Tue Apr 13, 2004 3:29 am   Subject: A Chinese [simplified] Smarty Manual [CHM & HTML]
[HTML]

Cool Very Cool .... I put them on my website
  Topic: Does Smarty Support clear_cache("index.tpl", "
ShenKong

Replies: 5
Views: 9410

PostForum: General   Posted: Tue Apr 06, 2004 2:26 am   Subject: Does Smarty Support clear_cache("index.tpl", "
Oh~ I must rebuild my cache system .... god http://www.showtop.net/smile/9.gif

Thanks ... everyone .
  Topic: Does Smarty Support clear_cache("index.tpl", "
ShenKong

Replies: 5
Views: 9410

PostForum: General   Posted: Tue Apr 06, 2004 1:33 am   Subject: Does Smarty Support clear_cache("index.tpl", "
Do you mean "clear_cache("common.tpl", "id1 | id2");" will clear the cache files that cache id like "id1id2xxxxx" and "clear_cache("common.tpl", "id1");" will clear the cache files that cache id like ...
  Topic: Does Smarty Support clear_cache("index.tpl", "
ShenKong

Replies: 5
Views: 9410

PostForum: General   Posted: Mon Apr 05, 2004 8:42 am   Subject: Does Smarty Support clear_cache("index.tpl", "
I don't know if Cache Groups can do it .

I will clear the cache files "common.tpl" which cache_id like "374fd7341b54a7e750efec84e31bfd15soft" or "9e018e398d4a58ff7f8a5c41fd64a3bbarticle" .
mmh , t ...
  Topic: How to cache the include file
ShenKong

Replies: 2
Views: 5826

PostForum: General   Posted: Tue Mar 30, 2004 1:20 pm   Subject: How to cache the include file
It is hard to understand these two topocs ... thanks boots . I think I needn't to include it. but instead to cut the tpl file to some pieces , and display them .

and , smarty has a notice :

line ...
  Topic: include files
ShenKong

Replies: 4
Views: 7431

PostForum: General   Posted: Mon Mar 29, 2004 5:30 am   Subject: include files
$smarty = new Smarty;

// Set the template_dir

$smarty->template_dir = "folder2";
  Topic: How can i do this with smarty?
ShenKong

Replies: 3
Views: 6506

PostForum: General   Posted: Sun Mar 28, 2004 12:49 pm   Subject: How can i do this with smarty?
I think you can use array like this :

$series_link[$i]

and use foreach in tpl file .
  Topic: How to cache the include file
ShenKong

Replies: 2
Views: 5826

PostForum: General   Posted: Sun Mar 28, 2004 12:45 pm   Subject: How to cache the include file
First of all , thanks boots .

Now I am working on a PHP web site . called openphp.cn , the web team now has only one person -- me . Sad

But I am very glad there are many ebullient people here , ...
  Topic: How do I use funtion in tpl files ?
ShenKong

Replies: 15
Views: 21466

PostForum: General   Posted: Thu Mar 25, 2004 2:57 pm   Subject: How do I use funtion in tpl files ?
Hi , I come back again ... Some question :

1. Does Smarty support Switch ?

My code :
<head>
<title>{$smarty.const.WEB_NAME} -
{if $smarty.get.page eq "soft&qu ...
  Topic: How do I use funtion in tpl files ?
ShenKong

Replies: 15
Views: 21466

PostForum: General   Posted: Wed Mar 24, 2004 1:25 pm   Subject: How do I use funtion in tpl files ?
mmh~~ One suggestion For smarty.class.php

Line 1728
if (!($fd = @fopen($filename, 'r'))) {
return false;
}

Change as
if (file_exists($filename)) {
...
  Topic: How do I use funtion in tpl files ?
ShenKong

Replies: 15
Views: 21466

PostForum: General   Posted: Wed Mar 24, 2004 5:32 am   Subject: How do I use funtion in tpl files ?
Watch codes is very tired ... Now everything seems OK .

Add these codes in smartyML class :
function is_cached($_smarty_tpl_file, $_smarty_cache_id = null, $_smarty_compile_id = null) {
...
  Topic: How do I use funtion in tpl files ?
ShenKong

Replies: 15
Views: 21466

PostForum: General   Posted: Wed Mar 24, 2004 4:46 am   Subject: How do I use funtion in tpl files ?
Oh my god . It is something wrong with this language class , how do I do now ....... I only use smaty class , every thing is OK .
  Topic: How do I use funtion in tpl files ?
ShenKong

Replies: 15
Views: 21466

PostForum: General   Posted: Wed Mar 24, 2004 4:42 am   Subject: How do I use funtion in tpl files ?
yes , all cache files exist .
in cache dir . file name is : chi-^chi-^%%192^%%1926952680^main.tpl , a html page .
in templates_c dir , file name is : chi-^%%192^%%1926952680^main.tpl.php
but is_c ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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