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 3 matches
Smarty Forum Index
Author Message
  Topic: Error in {append}
oleg_king

Replies: 1
Views: 8410

PostForum: Smarty 3   Posted: Sun Feb 03, 2013 9:42 pm   Subject: Error in {append}
Hi!

I found some strange behavior of smarty. When I try to append array with {append} or {$array[] = 1} it re-creates existing array with only assigned item in it. Subsequental appends works ok.
...
  Topic: Assigning variables inside fetch() - from plugins
oleg_king

Replies: 2
Views: 12631

PostForum: Smarty 3   Posted: Sat Jan 05, 2013 11:42 pm   Subject: Assigning variables inside fetch() - from plugins
I forgot about this problem and have found my own topic about similar behavior:
http://www.smarty.net/forums/viewtopic.php?t=21141

Sorry for repeated question.

Workaround from that topic still ...
  Topic: Assigning variables inside fetch() - from plugins
oleg_king

Replies: 2
Views: 12631

PostForum: Smarty 3   Posted: Sat Jan 05, 2013 10:52 pm   Subject: Assigning variables inside fetch() - from plugins
Hello!

I'm using approach 'php from templates', not common 'templates from php'. So, when I call template fetch(), I have smarty object already initialized inside application.

I'm calling plugin ...
 
Page 1 of 1
All times are GMT
Jump to:  


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