Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 10 matches
Smarty Forum Index
Author Message
  Topic: break and continue for looping functions
Janis

Replies: 11
Views: 156549

PostForum: Smarty 3   Posted: Thu Sep 17, 2009 11:02 pm   Subject: break and continue for looping functions
You are right, of course.

In my particular case (why I sought out a thread like this), firstly, I cannot really change the data, I as a template editor must use it as it is.

Secondly, the co ...
  Topic: break and continue for looping functions
Janis

Replies: 11
Views: 156549

PostForum: Smarty 3   Posted: Wed Sep 16, 2009 11:41 am   Subject: break and continue for looping functions
I agree.

mohrt's solution would fit only such simple example jLix gave, it wouldn't do always. There is a reason why PHP has "continue". Wink
  Topic: How to assign value to a specific array key
Janis

Replies: 2
Views: 7425

PostForum: General   Posted: Sat Apr 19, 2008 11:48 am   Subject: How to assign value to a specific array key
Thank you!
  Topic: How to assign value to a specific array key
Janis

Replies: 2
Views: 7425

PostForum: General   Posted: Sun Apr 13, 2008 10:27 am   Subject: How to assign value to a specific array key
Hello!

Is it possible to assign a value to a specific array key within a template?

Something like this: {assign var='array.key' value='value'}

Thanks!
  Topic: Smarty and UTF8 encoded files
Janis

Replies: 6
Views: 9362

PostForum: General   Posted: Sun Jul 08, 2007 7:41 pm   Subject: Smarty and UTF8 encoded files
OK, I found a BOM in some language file in the other script I used (which used Smarty). That's one BOM less. Very Happy

I cannot find the other one but I probably won't look more as only two BOMs result in ...
  Topic: Smarty and UTF8 encoded files
Janis

Replies: 6
Views: 9362

PostForum: General   Posted: Thu Jul 05, 2007 7:42 pm   Subject: Smarty and UTF8 encoded files
Anybody who had this problem succeeded in solving them?

I have exactly the same problem! (I really didn't thought there would be topic about this or if there were - I wouldn't be able to find it. : ...
  Topic: Added array subscript feature to {capture}
Janis

Replies: 3
Views: 8509

PostForum: Smarty Development   Posted: Tue Jul 03, 2007 10:17 am   Subject: Added array subscript feature to {capture}
Yes, this is a feature I'm looking for. It would be even more convenient if I could capture to "name=c[]" - so I'm not bothered by choosing the keys for the elements (as they would be unneed ...
  Topic: Bug in the looping structures or expected behaviour?
Janis

Replies: 8
Views: 12845

PostForum: Bugs   Posted: Thu Jun 28, 2007 12:48 pm   Subject: Bug in the looping structures or expected behaviour?
Great, "{foreach}" really is working! Very Happy

And I've been using "{section}" with its complex syntax all the time... Till now! Smile
  Topic: Bug in the looping structures or expected behaviour?
Janis

Replies: 8
Views: 12845

PostForum: Bugs   Posted: Wed Jun 27, 2007 4:02 pm   Subject: Bug in the looping structures or expected behaviour?
{foreach from=$array ...}
loops over $array if $array is an array or an object (may be an iterator).
if $array is some different type it is casted to array.
Well, it is all right so far, messju. Th ...
  Topic: Bug in the looping structures or expected behaviour?
Janis

Replies: 8
Views: 12845

PostForum: Bugs   Posted: Wed Jun 27, 2007 11:52 am   Subject: Bug in the looping structures or expected behaviour?
If that behaviour is consistent, would you, please, write down the rules for all cases on how "foreach" is working in Smarty?

I agree with giank, that this looks more like a bug. It is on ...
 
Page 1 of 1
All times are GMT
Jump to:  


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