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: Using SHUFFLE for simple carousel
djmassive

Replies: 1
Views: 4601

PostForum: General   Posted: Thu Jun 30, 2016 11:45 am   Subject: Using SHUFFLE for simple carousel
You need to pass to smarty using $smarty->assign('array' , $array) with files then use {foreach item=item from=$array} - simply the best way Smile
  Topic: Pass to static method array param foreach item
djmassive

Replies: 0
Views: 7326

PostForum: General   Posted: Mon Jun 27, 2016 9:35 pm   Subject: Pass to static method array param foreach item
I've got static method like this:

{Method::post([ 'name' => 'value' ])}

How can i pass other smarty var for example:

{foreach item=item from=$array&# ...
  Topic: Smarty 3 beta 6 released
djmassive

Replies: 9
Views: 34383

PostForum: Smarty 3   Posted: Sun Jan 17, 2010 3:41 pm   Subject: Smarty 3 beta 6 released
In Smarty3 B6:
{include file="`$smarty.const.MYCONST`modules/file.tpl"}

gives error:

Fatal error: Uncaught exception 'Exception' with message 'Unable to load template file '`@_URL ...
 
Page 1 of 1
All times are GMT
Jump to:  


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