cvs: smarty /docs/en appendixes.xml designers.xml programmers.xml

"Mehdi Achour" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsdidou1080311896@cvsserver>
didou		Fri Mar 26 09:38:16 2004 EDT

  Modified files:              
    /smarty/docs/en	appendixes.xml designers.xml programmers.xml 
  Log:
  fix livedocs build
  # s/&/\&amp;/g

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
didou-20040326093816.txt (text/plain, 24.8 KB)
http://cvs.php.net/diff.php/smarty/docs/en/appendixes.xml?r1=1.4&r2=1.5&ty=u
Index: smarty/docs/en/appendixes.xml
diff -u smarty/docs/en/appendixes.xml:1.4 smarty/docs/en/appendixes.xml:1.5
--- smarty/docs/en/appendixes.xml:1.4	Wed Mar 24 12:11:28 2004
+++ smarty/docs/en/appendixes.xml	Fri Mar 26 09:38:15 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <part id="appendixes">
  <title>Appendixes</title>
  <chapter id="troubleshooting">
@@ -58,7 +58,7 @@
   </sect1>
  </chapter>
  <chapter id="tips">
-  <title>Tips & Tricks</title>
+  <title>Tips &amp; Tricks</title>
   <para>
   </para>
   <sect1 id="tips.blank.var.handling">
http://cvs.php.net/diff.php/smarty/docs/en/designers.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/designers.xml
diff -u smarty/docs/en/designers.xml:1.3 smarty/docs/en/designers.xml:1.4
--- smarty/docs/en/designers.xml:1.3	Wed Mar 24 12:11:28 2004
+++ smarty/docs/en/designers.xml	Fri Mar 26 09:38:15 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <part id="smarty.for.designers">
  <title>Smarty For Template Designers</title>
 
@@ -57,17 +57,20 @@
     <example>
      <title>function syntax</title>
      <programlisting>
+<![CDATA[
 {config_load file="colors.conf"}
 
 {include file="header.tpl"}
 
 {if $highlight_name}
-	Welcome, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt;
+    Welcome, <font color="{#fontColor#}">{$name}!</font>
 {else}
-	Welcome, {$name}!
+    Welcome, {$name}!
 {/if}
 
-{include file="footer.tpl"}</programlisting>
+{include file="footer.tpl"}
+]]>
+     </programlisting>
     </example>
     <para>
      Both built-in functions and custom functions have the same syntax in
@@ -1069,7 +1072,7 @@
 
 {$articleTitle}
 {$articleTitle|escape}
-{$articleTitle|escape:"html"}    {* escapes  & &quot; &#039; &lt; &gt; *}
+{$articleTitle|escape:"html"}    {* escapes  &amp; &quot; &#039; &lt; &gt; *}
 {$articleTitle|escape:"htmlall"} {* escapes ALL html entities *}
 {$articleTitle|escape:"url"}
 {$articleTitle|escape:"quotes"}
@@ -1267,7 +1270,7 @@
 
 index.tpl:
 
-{* replace each carriage return, tab & new line with a space *}
+{* replace each carriage return, tab &amp; new line with a space *}
 
 {$articleTitle}
 {$articleTitle|regex_replace:"/[\r\t\n]/":" "}
@@ -2480,7 +2483,7 @@
 			<emphasis>{/if}</emphasis>. <emphasis>{else}</emphasis> and
 			<emphasis>{elseif}</emphasis> are also permitted. All PHP conditionals
 			are recognized, such as <emphasis>||</emphasis>, <emphasis>or</emphasis>,
-            <emphasis>&&</emphasis>, <emphasis>and</emphasis>, etc.
+            <emphasis>&amp;&amp;</emphasis>, <emphasis>and</emphasis>, etc.
 			</para>
 
 			<para>
@@ -3731,7 +3734,7 @@
 OUTPUT:
 
 This is the contents of foo.
-Welcome to Foobar Pub & Grill's home page!
+Welcome to Foobar Pub &amp; Grill's home page!
 You must supply a &lt;b&gt;city&lt;/b&gt;.
 You must supply a &lt;b&gt;state&lt;/b&gt;.
 
@@ -5325,8 +5328,7 @@
 9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%
 61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e
 %27%29%3b'))&lt;/script&gt;
-&lt;a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" &gt;&#x6d;&#x65;&#x40;&#x64;&
-#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;&lt;/a&gt;
+&lt;a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" &gt;&#x6d;&#x65;&#x40;&#x64;&#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;&lt;/a&gt;
 &lt;a href="mailto:[email protected]?subject=Hello%20to%20you%21" &gt;[email protected]&lt;/a&gt;
 &lt;a href="mailto:[email protected][email protected]%[email protected]" &gt;[email protected]&lt;/a&gt;
 &lt;a href="mailto:[email protected]" class="email"&gt;[email protected]&lt;/a&gt;</programlisting>
http://cvs.php.net/diff.php/smarty/docs/en/programmers.xml?r1=1.7&r2=1.8&ty=u
Index: smarty/docs/en/programmers.xml
diff -u smarty/docs/en/programmers.xml:1.7 smarty/docs/en/programmers.xml:1.8
--- smarty/docs/en/programmers.xml:1.7	Thu Mar 25 11:39:16 2004
+++ smarty/docs/en/programmers.xml	Fri Mar 26 09:38:16 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
  <part id="smarty.for.programmers">
   <title>Smarty For Programmers</title>
 
@@ -1085,10 +1085,10 @@
 <programlisting role="php">
 <![CDATA[
 <?php
-function smarty_block_foo($params, &$smarty) {
+function smarty_block_foo($params, &amp;$smarty) {
 	if (isset[$params['object']]) {
 		// get reference to registered object
-   		$obj_ref = &$smarty->&get_registered_object($params['object']);
+   		$obj_ref = &amp;$smarty->&get_registered_object($params['object']);
 		// use $obj_ref is now a reference to the object
 	}
 }
@@ -1224,11 +1224,11 @@
 			<para>
              The php-function callback <parameter>impl</parameter> can be either (a) a string
              containing the function name or (b) an array of the form
-             <literal>array(&$object, $method)</literal> with
-             <literal>&$object</literal> being a reference to an
+             <literal>array(&amp;$object, $method)</literal> with
+             <literal>&amp;$object</literal> being a reference to an
              object and <literal>$method</literal> being a string
              containing the mehod-name or (c) an array of the form
-             <literal>array(&$class, $method)</literal> with
+             <literal>array(&amp;$class, $method)</literal> with
              <literal>$class</literal> being a classname and
              <literal>$method</literal> being a class method of that
              class.
@@ -1243,7 +1243,7 @@
 <?php
 $smarty->register_block("translate", "do_translation");
 
-function do_translation ($params, $content, &$smarty, &$repeat) {
+function do_translation ($params, $content, &amp;$smarty, &amp;$repeat) {
     if (isset($content)) {
         $lang = $params['lang'];
         // do some translation with $content
@@ -1278,11 +1278,11 @@
 			<para>
                 The php-function callback <parameter>impl</parameter> can be either (a) a string
 		containing the function name or (b) an array of the form
-		<literal>array(&$object, $method)</literal> with
-		<literal>&$object</literal> being a reference to an
+		<literal>array(&amp;$object, $method)</literal> with
+		<literal>&amp;$object</literal> being a reference to an
 		object and <literal>$method</literal> being a string
 		containing the mehod-name or (c) an array of the form
-		<literal>array(&$class, $method)</literal> with
+		<literal>array(&amp;$class, $method)</literal> with
 		<literal>$class</literal> being a classname and
 		<literal>$method</literal> being a class method of that
 		class.
@@ -1312,11 +1312,11 @@
 			<para>
              The php-function callback <parameter>impl</parameter> can be either (a) a string
              containing the function name or (b) an array of the form
-	     <literal>array(&$object, $method)</literal> with
-             <literal>&$object</literal> being a reference to an
+	     <literal>array(&amp;$object, $method)</literal> with
+             <literal>&amp;$object</literal> being a reference to an
              object and <literal>$method</literal> being a string
              containing the mehod-name or (c) an array of the form
-             <literal>array(&$class, $method)</literal> with
+             <literal>array(&amp;$class, $method)</literal> with
              <literal>$class</literal> being a classname and
              <literal>$method</literal> being a class method of that
              class.
@@ -1363,11 +1363,11 @@
          <para>
 	  The php-function callback <parameter>impl</parameter> can be either (a) a string
 	  containing the function name or (b) an array of the form
-	  <literal>array(&$object, $method)</literal> with
-	  <literal>&$object</literal> being a reference to an
+	  <literal>array(&amp;$object, $method)</literal> with
+	  <literal>&amp;$object</literal> being a reference to an
 	  object and <literal>$method</literal> being a string
 	  containing the mehod-name or (c) an array of the form
-	  <literal>array(&$class, $method)</literal> with
+	  <literal>array(&amp;$class, $method)</literal> with
 	  <literal>$class</literal> being a classname and
 	  <literal>$method</literal> being a class method of that
 	  class.
@@ -1424,11 +1424,11 @@
                 <para>
                  The php-function callback <parameter>function</parameter> can be either (a) a string
                  containing the function name or (b) an array of the form
-                 <literal>array(&$object, $method)</literal> with
-                 <literal>&$object</literal> being a reference to an
+                 <literal>array(&amp;$object, $method)</literal> with
+                 <literal>&amp;$object</literal> being a reference to an
                  object and <literal>$method</literal> being a string
                  containing the mehod-name or (c) an array of the form
-                 <literal>array(&$class, $method)</literal> with
+                 <literal>array(&amp;$class, $method)</literal> with
                  <literal>$class</literal> being a classname and
                  <literal>$method</literal> being a class method of that
                  class.
@@ -1451,11 +1451,11 @@
             <para>
                 The php-function callback <parameter>function</parameter> can be either (a) a string
                 containing the function name or (b) an array of the form
-                <literal>array(&$object, $method)</literal> with
-                <literal>&$object</literal> being a reference to an
+                <literal>array(&amp;$object, $method)</literal> with
+                <literal>&amp;$object</literal> being a reference to an
                 object and <literal>$method</literal> being a string
                 containing the mehod-name or (c) an array of the form
-                <literal>array(&$class, $method)</literal> with
+                <literal>array(&amp;$class, $method)</literal> with
                 <literal>$class</literal> being a classname and
                 <literal>$method</literal> being a class method of that
                 class.
@@ -1478,11 +1478,11 @@
                         <para>
                 The php-function callback <parameter>function</parameter> can be either (a) a string
                 containing the function name or (b) an array of the form
-                <literal>array(&$object, $method)</literal> with
-                <literal>&$object</literal> being a reference to an
+                <literal>array(&amp;$object, $method)</literal> with
+                <literal>&amp;$object</literal> being a reference to an
                 object and <literal>$method</literal> being a string
                 containing the mehod-name or (c) an array of the form
-                <literal>array(&$class, $method)</literal> with
+                <literal>array(&amp;$class, $method)</literal> with
                 <literal>$class</literal> being a classname and
                 <literal>$method</literal> being a class method of that
                 class.
@@ -2077,7 +2077,7 @@
 $smarty = new Smarty;
 $smarty->caching = true;
 
-function remaining_seconds($params, &$smarty) {
+function remaining_seconds($params, &amp;$smarty) {
     $remain = $params['endtime'] - time();
     if ($remain >=0)
         return $remain . " second(s)";
@@ -2118,7 +2118,7 @@
 $smarty = new Smarty;
 $smarty->caching = true;
 
-function smarty_block_dynamic($param, $content, &$smarty) {
+function smarty_block_dynamic($param, $content, &amp;$smarty) {
     return $content;
 }
 $smarty->register_block('dynamic', 'smarty_block_dynamic', false);
@@ -2191,8 +2191,8 @@
 	parameters for block-function-plugins: They get 4 parameters
 	<parameter>$params</parameter>,
 	<parameter>$content</parameter>,
-	<parameter>&$smarty</parameter> and
-	<parameter>&$repeat</parameter> and they also behave like
+	<parameter>&amp;$smarty</parameter> and
+	<parameter>&amp;$repeat</parameter> and they also behave like
 	block-function-plugins.
 	</para>
     <example>
@@ -2203,7 +2203,7 @@
 // the object
 
 class My_Object {
-	function meth1($params, &$smarty_obj) {
+	function meth1($params, &amp;$smarty_obj) {
 		return "this is my meth1";
 	}
 }
@@ -2258,7 +2258,7 @@
 <![CDATA[
 <?php
 // put this in your application
-function remove_dw_comments($tpl_source, &$smarty)
+function remove_dw_comments($tpl_source, &amp;$smarty)
 {
     return preg_replace("/<!--#.*-->/U","",$tpl_source);
 }
@@ -2295,7 +2295,7 @@
 <![CDATA[
 <?php
 // put this in your application
-function add_header_comment($tpl_source, &$smarty)
+function add_header_comment($tpl_source, &amp;$smarty)
 {
     return "<?php echo \"<!-- Created by Smarty! -->;\n\" ?>;\n".$tpl_source;
 }
@@ -2339,7 +2339,7 @@
 <![CDATA[
 <?php
 // put this in your application
-function protect_email($tpl_output, &$smarty)
+function protect_email($tpl_output, &amp;$smarty)
 {
     $tpl_output =
        preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
@@ -2413,7 +2413,7 @@
 
 */
 
-function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null)
+function mysql_cache_handler($action, &amp;$smarty_obj, &amp;$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null)
 {
 	// set db host, user and pass here
 	$db_host = 'localhost';
@@ -2606,7 +2606,7 @@
 <![CDATA[
 <?php
 // put these function somewhere in your application
-function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj)
+function db_get_template ($tpl_name, &amp;$tpl_source, &amp;$smarty_obj)
 {
     // do database call here to fetch your template,
     // populating $tpl_source
@@ -2622,7 +2622,7 @@
     }
 }
 
-function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
+function db_get_timestamp($tpl_name, &amp;$tpl_timestamp, &amp;$smarty_obj)
 {
     // do database call here to populate $tpl_timestamp.
     $sql = new SQL;
@@ -2637,13 +2637,13 @@
     }
 }
 
-function db_get_secure($tpl_name, &$smarty_obj)
+function db_get_secure($tpl_name, &amp;$smarty_obj)
 {
     // assume all templates are secure
     return true;
 }
 
-function db_get_trusted($tpl_name, &$smarty_obj)
+function db_get_trusted($tpl_name, &amp;$smarty_obj)
 {
     // not used for templates
 }
@@ -2680,7 +2680,7 @@
 <?php
 // put this function somewhere in your application
 
-function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj)
+function make_template ($resource_type, $resource_name, &amp;$template_source, &amp;$template_timestamp, &amp;$smarty_obj)
 {
 	if( $resource_type == 'file' ) {
 		if ( ! is_readable ( $resource_name )) {
@@ -2834,7 +2834,7 @@
      As a general rule, Smarty object is always passed to the plugins
      as the last parameter (with two exceptions: modifiers do not get
      passed the Smarty object at all and blocks get passed
-     <parameter>&$repeat</parameter> after the Smarty object to keep
+     <parameter>&amp;$repeat</parameter> after the Smarty object to keep
      backwards compatibility to older versions of Smarty).
     </para>
    </sect1>
@@ -2844,7 +2844,7 @@
      <funcprototype>
       <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef>
       <paramdef>array <parameter>$params</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -2883,7 +2883,7 @@
  * Purpose:  outputs a random magic answer
  * -------------------------------------------------------------
  */
-function smarty_function_eightball($params, &$smarty)
+function smarty_function_eightball($params, &amp;$smarty)
 {
     $answers = array('Yes',
                      'No',
@@ -2922,7 +2922,7 @@
  * Purpose:  assign a value to a template variable
  * -------------------------------------------------------------
  */
-function smarty_function_assign($params, &$smarty)
+function smarty_function_assign($params, &amp;$smarty)
 {
     if (empty($params['var'])) {
         $smarty->trigger_error("assign: missing 'var' parameter");
@@ -3042,7 +3042,7 @@
       <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef>
       <paramdef>array <parameter>$params</parameter></paramdef>
       <paramdef>mixed <parameter>$content</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3055,7 +3055,7 @@
     <para>
      By default your function implementation is called twice by
      Smarty: once for the opening tag, and once for the closing tag
-     (see <literal>&$repeat</literal> below how to change this).
+     (see <literal>&amp;$repeat</literal> below how to change this).
     </para>
     <para>
      Only the opening tag of the block function may have attributes. All
@@ -3076,7 +3076,7 @@
     </para>
 
     <para>
-     The parameter <parameter>&$repeat</parameter> is passed by
+     The parameter <parameter>&amp;$repeat</parameter> is passed by
      reference to the function implementation and provides a
      possibility for it to control how many times the block is
      displayed. By default <parameter>$repeat</parameter> is
@@ -3084,7 +3084,7 @@
      (the block opening tag) and <literal>false</literal> on all
      subsequent calls to the block function (the block's closing tag).
      Each time the function implementation returns with
-     <parameter>&$repeat</parameter> being true, the contents between
+     <parameter>&amp;$repeat</parameter> being true, the contents between
      {func} .. {/func} are evaluated and the function implementation
      is called again with the new block contents in the parameter
      <parameter>$content</parameter>.
@@ -3116,7 +3116,7 @@
  * Purpose:  translate a block of text
  * -------------------------------------------------------------
  */
-function smarty_block_translate($params, $content, &$smarty)
+function smarty_block_translate($params, $content, &amp;$smarty)
 {
     if (isset($content)) {
         $lang = $params['lang'];
@@ -3142,7 +3142,7 @@
      <funcprototype>
       <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef>
       <paramdef>string <parameter>$tag_arg</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3171,7 +3171,7 @@
  *           the time it was compiled.
  * -------------------------------------------------------------
  */
-function smarty_compiler_tplheader($tag_arg, &$smarty)
+function smarty_compiler_tplheader($tag_arg, &amp;$smarty)
 {
     return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';";
 }
@@ -3209,7 +3209,7 @@
      <funcprototype>
       <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef>
       <paramdef>string <parameter>$source</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3223,7 +3223,7 @@
      <funcprototype>
       <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef>
       <paramdef>string <parameter>$compiled</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3248,7 +3248,7 @@
  * Purpose:  Convert html tags to be lowercase.
  * -------------------------------------------------------------
  */
- function smarty_prefilter_pre01($source, &$smarty)
+ function smarty_prefilter_pre01($source, &amp;$smarty)
  {
      return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source);
  }
@@ -3271,7 +3271,7 @@
  * Purpose:  Output code that lists all current template vars.
  * -------------------------------------------------------------
  */
- function smarty_postfilter_post01($compiled, &$smarty)
+ function smarty_postfilter_post01($compiled, &amp;$smarty)
  {
      $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled;
      return $compiled;
@@ -3291,7 +3291,7 @@
      <funcprototype>
       <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef>
       <paramdef>string <parameter>$template_output</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3315,7 +3315,7 @@
  *           a simple protection against spambots
  * -------------------------------------------------------------
  */
- function smarty_outputfilter_protect_email($output, &$smarty)
+ function smarty_outputfilter_protect_email($output, &amp;$smarty)
  {
      return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
                          '$1%40$2', $output);
@@ -3344,24 +3344,24 @@
      <funcprototype>
       <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef>
       <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
-      <paramdef>string <parameter>&$source</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>string <parameter>&amp;$source</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
      <funcprototype>
       <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef>
       <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
-      <paramdef>int <parameter>&$timestamp</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>int <parameter>&amp;$timestamp</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
      <funcprototype>
       <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef>
       <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
      <funcprototype>
       <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef>
       <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
 
@@ -3417,7 +3417,7 @@
  * Purpose:  Fetches templates from a database
  * -------------------------------------------------------------
  */
-function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty)
+function smarty_resource_db_source($tpl_name, &amp;$tpl_source, &amp;$smarty)
 {
     // do database call here to fetch your template,
     // populating $tpl_source
@@ -3433,7 +3433,7 @@
     }
 }
 
-function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty)
+function smarty_resource_db_timestamp($tpl_name, &amp;$tpl_timestamp, &amp;$smarty)
 {
     // do database call here to populate $tpl_timestamp.
     $sql = new SQL;
@@ -3448,13 +3448,13 @@
     }
 }
 
-function smarty_resource_db_secure($tpl_name, &$smarty)
+function smarty_resource_db_secure($tpl_name, &amp;$smarty)
 {
     // assume all templates are secure
     return true;
 }
 
-function smarty_resource_db_trusted($tpl_name, &$smarty)
+function smarty_resource_db_trusted($tpl_name, &amp;$smarty)
 {
     // not used for templates
 }
@@ -3474,7 +3474,7 @@
      <funcprototype>
       <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef>
       <paramdef>array <parameter>$params</parameter></paramdef>
-      <paramdef>object <parameter>&$smarty</parameter></paramdef>
+      <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
     <para>
@@ -3500,7 +3500,7 @@
  * Purpose:  Inserts current date/time according to format
  * -------------------------------------------------------------
  */
-function smarty_insert_time($params, &$smarty)
+function smarty_insert_time($params, &amp;$smarty)
 {
     if (empty($params['format'])) {
         $smarty->trigger_error("insert time: missing 'format' parameter");
@@ -3537,4 +3537,4 @@
 vim600: syn=xml fen fdm=syntax fdl=2 si
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.