aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/docs/coding-guidelines.html
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-08-24 15:12:40 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-08-24 15:12:40 +0000
commit03568fd176501c6a6c629590ab701eadef5841aa (patch)
tree2937329c7fc8fdbb406395fb55183fc187fb61a9 /phpBB/docs/coding-guidelines.html
parentd2f72e2b27ee56c0dc1ef64e1573fe6e3fe0e0c5 (diff)
downloadforums-03568fd176501c6a6c629590ab701eadef5841aa.tar
forums-03568fd176501c6a6c629590ab701eadef5841aa.tar.gz
forums-03568fd176501c6a6c629590ab701eadef5841aa.tar.bz2
forums-03568fd176501c6a6c629590ab701eadef5841aa.tar.xz
forums-03568fd176501c6a6c629590ab701eadef5841aa.zip
Add INC (working name) to template syntax
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10051 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/docs/coding-guidelines.html')
-rw-r--r--phpBB/docs/coding-guidelines.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index 37b9629362..03b2949eba 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -1174,7 +1174,12 @@ append_sid(&quot;{$phpbb_root_path}memberlist.$phpEx&quot;, 'mode=group&amp;amp;
<span class="comment">&lt;!-- DEFINE $SOME_VAR = 'my_file.html' --&gt;</span>
<span class="comment">&lt;!-- INCLUDE {$SOME_VAR} --&gt;</span>
</pre></div>
-
+<p>Also added in <strong>3.0.6</strong> is the ability to increment an variable on use. This can be used for instances like tabindexes, where the amount of entries is not statically known.
+The INC command will print the current state of a defined var and then increment it by one (postincrement).</p>
+<div class="codebox"><pre>
+<span class="comment">&lt;!-- DEFINE $SOME_VAR = 1 --&gt;</span>
+<span class="comment">&lt;!-- INC $SOME_VAR --&gt;</span>
+</pre></div>
<h4>PHP</h4>
<p>A contentious decision has seen the ability to include PHP within the template introduced. This is achieved by enclosing the PHP within relevant tags:</p>