diff options
author | Chris Smith <toonarmy@phpbb.com> | 2009-07-25 10:23:05 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2009-07-25 10:23:05 +0000 |
commit | e4b60c6d8a672fc2f59dd599cd347f3d25962def (patch) | |
tree | 63826d8b5a9e52668f31e09d3f425da6761f5dee | |
parent | b902fc20ae78438af7eb44e9b1f078cdcc213e16 (diff) | |
download | forums-e4b60c6d8a672fc2f59dd599cd347f3d25962def.tar forums-e4b60c6d8a672fc2f59dd599cd347f3d25962def.tar.gz forums-e4b60c6d8a672fc2f59dd599cd347f3d25962def.tar.bz2 forums-e4b60c6d8a672fc2f59dd599cd347f3d25962def.tar.xz forums-e4b60c6d8a672fc2f59dd599cd347f3d25962def.zip |
Add some docs for dynamic includes adding in r9570
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9848 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/coding-guidelines.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html index 32312054d9..37bad06587 100644 --- a/phpBB/docs/coding-guidelines.html +++ b/phpBB/docs/coding-guidelines.html @@ -1116,6 +1116,16 @@ append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp; <p>You will note in the 3.0 templates the major sources start with <code><!-- INCLUDE overall_header.html --></code> or <code><!-- INCLUDE simple_header.html --></code>, etc. In 2.0.x control of "which" header to use was defined entirely within the code. In 3.0.x the template designer can output what they like. Note that you can introduce new templates (i.e. other than those in the default set) using this system and include them as you wish ... perhaps useful for a common "menu" bar or some such. No need to modify loads of files as with 2.0.x.</p> +<p>Added in <strong>3.0.6</strong> is the ability to include a file using a template variable to specify the file, this functionality only works for root variables (i.e. not block variables).</p> +<div class="codebox"><pre> +<span class="comment"><!-- INCLUDE {FILE_VAR} --></span> +</pre></div> +<p>Template defined variables can also be utilised. +<div class="codebox"><pre> +<span class="comment"><!-- DEFINE $SOME_VAR = 'my_file.html' --></span> +<span class="comment"><!-- INCLUDE {$SOME_VAR} --></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> |