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 23 matches
Smarty Forum Index
Author Message
  Topic: Smarty functions in Smarty functions?
Dummkopf

Replies: 6
Views: 10693

PostForum: General   Posted: Thu Oct 06, 2005 4:04 pm   Subject: Smarty functions in Smarty functions?
Tanks a lot! Smile
  Topic: Smarty functions in Smarty functions?
Dummkopf

Replies: 6
Views: 10693

PostForum: General   Posted: Thu Oct 06, 2005 12:07 am   Subject: Smarty functions in Smarty functions?
How can I implement that assign-behavior without loosing the possibility to return values?
  Topic: Smarty functions in Smarty functions?
Dummkopf

Replies: 6
Views: 10693

PostForum: General   Posted: Wed Oct 05, 2005 5:20 pm   Subject: Smarty functions in Smarty functions?
Thanks for the advise!

I know that it doesn't work that way. The example was just for demonstration what I'd like to have.

If there isn't any other way to do it, I will write such a modifier, wh ...
  Topic: Smarty functions in Smarty functions?
Dummkopf

Replies: 6
Views: 10693

PostForum: General   Posted: Wed Oct 05, 2005 4:51 pm   Subject: Smarty functions in Smarty functions?
Is there any way to use the return of a Smarty function as a parameter of another one?

{function1 var={function2}}
  Topic: Problems with float-numbers
Dummkopf

Replies: 1
Views: 8220

PostForum: General   Posted: Sat Jul 03, 2004 5:57 pm   Subject: Problems with float-numbers
Hi,

if I set a variable to 0.005 and try to print it in the template, it just gives me 0.

Is there any trick to get 0.005 as output? I need this float-value to perform some calculations.
  Topic: Clearing cache-file without compile_id - possible?
Dummkopf

Replies: 6
Views: 12710

PostForum: General   Posted: Wed May 12, 2004 6:55 pm   Subject: Clearing cache-file without compile_id - possible?
It's working fine now. Thank you very much for your help!

The fetching has now got this format:

Template: $template
CacheID:
CompileID: NULL

which clears all template files $template in ca ...
  Topic: Clearing cache-file without compile_id - possible?
Dummkopf

Replies: 6
Views: 12710

PostForum: General   Posted: Wed May 12, 2004 5:17 pm   Subject: Clearing cache-file without compile_id - possible?
Is there at least a possibility to delete whole cache-groups?

clear_cache('ressourcen.tpl', 'user|145', 'skin_1') doesn't clear any file but should clear the following:

('r.tpl', 'user|145|de', ...
  Topic: Clearing cache-file without compile_id - possible?
Dummkopf

Replies: 6
Views: 12710

PostForum: General   Posted: Wed May 12, 2004 5:00 pm   Subject: Clearing cache-file without compile_id - possible?
If I set it to NULL the files are not cleared, because I fetched them with a certain compile_id != NULL.

is_cached('ressourcen.tpl', 'user|145|de', 'skin_1') => TRUE

The language of player 14 ...
  Topic: Clearing cache-file without compile_id - possible?
Dummkopf

Replies: 6
Views: 12710

PostForum: General   Posted: Tue May 11, 2004 5:26 pm   Subject: Clearing cache-file without compile_id - possible?
Hi all,

I have several template-folders, one for each skin.

Because it may happen, that a template-file is called the same as another one in a different skin, I call them with compile_id = skin_ ...
  Topic: Caching-Variable has to change several times. Need help
Dummkopf

Replies: 4
Views: 7383

PostForum: General   Posted: Thu May 06, 2004 2:31 pm   Subject: Caching-Variable has to change several times. Need help
I found my mistake: During the recursive function calls the caching-value was changed of course. When I fetched the Smarty-results I forgot to set caching to its initial state.

Thanks for your answ ...
  Topic: Caching-Variable has to change several times. Need help
Dummkopf

Replies: 4
Views: 7383

PostForum: General   Posted: Thu May 06, 2004 1:23 pm   Subject: Caching-Variable has to change several times. Need help
I don't want to cache the output for page.tpl at all.

All the other parameters may change - but the impressum will be the same. So I just want to cache the impressum.tpl for expample in German. (Ca ...
  Topic: Caching-Variable has to change several times. Need help
Dummkopf

Replies: 4
Views: 7383

PostForum: General   Posted: Thu May 06, 2004 12:42 pm   Subject: Caching-Variable has to change several times. Need help
Hi,

I use Smarty as a part of my framework. At the end of all business-logic, the page, which is a nested object containing other templates, language-objects and so on, has to be parsed.

Every p ...
  Topic: is_cached doesn't return TRUE if any cache_id is given
Dummkopf

Replies: 1
Views: 5271

PostForum: General   Posted: Wed May 05, 2004 5:26 pm   Subject: is_cached doesn't return TRUE if any cache_id is given
Jut forget about it! Smile

For others, who may find this thread:

Don't forget to use the fetch-function also with cache_id as second parameter!
And do NOT use force_compile if you want to have the ...
  Topic: is_cached doesn't return TRUE if any cache_id is given
Dummkopf

Replies: 1
Views: 5271

PostForum: General   Posted: Wed May 05, 2004 5:15 pm   Subject: is_cached doesn't return TRUE if any cache_id is given
Hi,

I've got the following problem:

If I use is_cached("DIR / TEMPLATE") with caching > 0 I get TRUE.
If I use is_cached("DIR / TEMPLATE", "ANYTHING") I always get FALSE.

In both cases I ...
  Topic: Problem: Page doesn't change anymore
Dummkopf

Replies: 7
Views: 10389

PostForum: General   Posted: Wed Dec 17, 2003 9:25 pm   Subject: Problem: Page doesn't change anymore
If anybody will ever have the same problem:

Take flashFXP - it can chmod dirs recursivly ...

With the write permissions everything works fine!
 
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