Author |
Message |
Topic: Increment array values within a foreach loop |
felic
Replies: 6
Views: 13762
|
Forum: General Posted: Mon Sep 03, 2012 10:47 am Subject: Increment array values within a foreach loop |
{foreach from=$foreachArray item=_foreachArray}
{next($buildArray)}
{/foreach}
Great. Exactly what i needed (Where i could have found this in the docs? Searched but got no results for 'next').
... |
Topic: Increment array values within a foreach loop |
felic
Replies: 6
Views: 13762
|
Forum: General Posted: Sun Sep 02, 2012 12:12 pm Subject: Increment array values within a foreach loop |
First, thanks for your response!
It's all about pushing random data into a foreach loop, where there is no information within the foreach result set to be useable. Guess assigning individual css cl ... |
Topic: Increment array values within a foreach loop |
felic
Replies: 6
Views: 13762
|
Forum: General Posted: Sat Sep 01, 2012 11:34 pm Subject: Increment array values within a foreach loop |
Hi,
i'd like to increment array values within a foreach loop (with independend values). It is needed to define the array ($buildArray) within the template.
While with Smarty2 the code below (re ... |
Topic: Substitute for Smarty_Compiler reference |
felic
Replies: 4
Views: 12504
|
Forum: Smarty 3 Posted: Wed Mar 14, 2012 5:36 pm Subject: Substitute for Smarty_Compiler reference |
Thanks a lot for your answer. Marvelous, this spares a lot of code at least
And if i quote the string like that
{i18n 'String'}
i get nearly the same portions of source st ... |
Topic: Substitute for Smarty_Compiler reference |
felic
Replies: 4
Views: 12504
|
Forum: Smarty 3 Posted: Tue Mar 13, 2012 7:53 pm Subject: Substitute for Smarty_Compiler reference |
As the source code is well commented, i just post the two related files. Thanks for digging in.
File: compiler.i18.php
/**
* Smarty {i18n} compiler function plugin
*
* Type ... |
Topic: Substitute for Smarty_Compiler reference |
felic
Replies: 4
Views: 12504
|
Forum: Smarty 3 Posted: Tue Mar 13, 2012 5:41 pm Subject: Substitute for Smarty_Compiler reference |
Hi,
i currently upgrading from 2 -> 3. I have a compile plugin (which implements i18n gettext translation) that needs a reference to the origin smarty compiler (class Smarty_Compiler). That is b ... |
Topic: plugins_dir | Path Problem ? |
felic
Replies: 4
Views: 13315
|
Forum: Installation and Setup Posted: Tue Jul 22, 2003 8:38 pm Subject: plugins_dir | Path Problem ? |
oh f..., yeah, you right. Dumb me
I thing i should leave my desk for today
Many thanks for your help.
bye
felic |
Topic: plugins_dir | Path Problem ? |
felic
Replies: 4
Views: 13315
|
Forum: Installation and Setup Posted: Tue Jul 22, 2003 8:35 pm Subject: plugins_dir | Path Problem ? |
Hi,
a print_r shows up the correct path. (With or without a ending slash)
[plugin_dir] => /Library/WebServer/Documents/temp/creatics/lib/Smarty/my_plugins/
smarty doesn`t recognize the giv ... |
Topic: plugins_dir | Path Problem ? |
felic
Replies: 4
Views: 13315
|
Forum: Installation and Setup Posted: Tue Jul 22, 2003 1:15 pm Subject: plugins_dir | Path Problem ? |
Hi all,
this of course works (inside a class function):
$this->plugin_dir = ''.$_SERVER['DOCUMENT_ROOT'].'/plugins';
This doesn`t... :
$this->plugin_dir = ''.$_SERVER['DOCU ... |
|