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 24 matches
Smarty Forum Index
Author Message
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Mon Jun 21, 2010 12:26 pm   Subject: Static Object Access
Guys? Sad
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Wed Mar 17, 2010 8:22 am   Subject: Static Object Access
Up ..
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Thu Jan 21, 2010 12:28 pm   Subject: Static Object Access
No solution for this?
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Fri Jan 08, 2010 12:34 pm   Subject: Static Object Access
In SMarty3 you can access static classes directly.

{Bla::something()} to output the result.

The answer I was looking for, thnx ! I cannot test it right now, but does it work with namespaces too ...
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Tue Jan 05, 2010 11:29 pm   Subject: Static Object Access
In SMarty3 you can access static classes directly.

{Bla::something()} to output the result.

The answer I was looking for, thnx ! I cannot test it right now, but does it work with namespaces too ...
  Topic: Static Object Access
caoimhin

Replies: 9
Views: 16673

PostForum: Smarty 3   Posted: Fri Jan 01, 2010 7:41 pm   Subject: Static Object Access
What is the best solution to call a static object in smarty?

Let's say I want to use Bla::something() in my template and it outputs a string.
  Topic: Why SMARTY_RESOURCE_CHAR_SET is UTF-8 ?
caoimhin

Replies: 3
Views: 12320

PostForum: Smarty 3   Posted: Mon Nov 16, 2009 1:54 pm   Subject: Re: Why SMARTY_RESOURCE_CHAR_SET is UTF-8 ?
Why should ISO-8859-1 be the default?
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Mon Nov 16, 2009 8:34 am   Subject: How to create a Smarty 3 compiler plugin?
Looks ok now, thnx ! I have another question, I will put it here but if you want me to create a new topic for that I will do that.

If I want to create a function with an unknown number of arguments ...
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 11:16 pm   Subject: How to create a Smarty 3 compiler plugin?
It works now, except one thing. If I use a nocache include {include file="test.tpl" nocache}, then I cannot use {$smarty.now nocache} in the test.tpl template. It will just display nothing t ...
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:51 pm   Subject: How to create a Smarty 3 compiler plugin?
No problem, just to let you know Smile
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:45 pm   Subject: How to create a Smarty 3 compiler plugin?
I just noticed something else .. Is it possible that the nocache does not work anymore on included files, or files that extend another file.

The same setup as for static_image, but with caching = 2 ...
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:38 pm   Subject: How to create a Smarty 3 compiler plugin?
Works just fine ! Thnx Smile
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:25 pm   Subject: How to create a Smarty 3 compiler plugin?
Ow, thnx Smile

I know you think my approach is wrong, but I don't know any other way to calculate width and height just once and not on any page call.
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:16 pm   Subject: How to create a Smarty 3 compiler plugin?
Nothing has has changed there. Are you sure that you did use it in child {block} sections before?

I wanted to say yes, but you're right. I call the template directly for testing purpose, I forgot t ...
  Topic: How to create a Smarty 3 compiler plugin?
caoimhin

Replies: 30
Views: 47368

PostForum: Smarty 3   Posted: Thu Nov 12, 2009 9:04 pm   Subject: How to create a Smarty 3 compiler plugin?
Ok, I can understand that. But why does that work with beta 1?

But yeah, I will create a function for it Smile Not my main goal, but better then nothing Smile
 
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