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

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Using SHUFFLE for simple carousel

Replies: 1
Views: 2502

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

Replies: 0
Views: 5502

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

Replies: 9
Views: 26764

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