[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-cvs
Subject:    [SMARTY-CVS] cvs: smarty /docs/en/designers/language-builtin-functions language-function-include-php
From:       "Messju Mohr" <messju () php ! net>
Date:       2005-06-23 18:40:55
Message-ID: cvsmessju1119552055 () cvsserver
[Download RAW message or body]

messju		Thu Jun 23 14:40:55 2005 EDT

  Modified files:              
    /smarty/docs/en/designers/language-builtin-functions	
                                                        \
language-function-include-php.xml   Log:
  removed paragraph that may encourage using {include_php} over custom
  functions. the opposite should be proposed.
  
  
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml?r1=1.7&r2=1.8&ty=u
                
Index: smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml
                
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml:1.7 \
smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml:1.8
                
--- smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml:1.7	Fri \
                May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-builtin-functions/language-function-include-php.xml	Thu \
Jun 23 14:40:52 2005 @@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <sect1 id="language.function.include.php">
  <title>{include_php}</title>
  <informaltable frame="all">
@@ -71,17 +71,6 @@
   or an absolute path.
  </para>
  <para>
-  {include_php} is a nice way to handle <link
-  linkend="tips.componentized.templates">componentized templates</link>, and
-  keep PHP code separate from the template files. Lets say you have a
-  template that shows your site navigation, which is pulled
-  dynamically from a database. You can keep your PHP logic that grabs
-  database content in a separate directory, and include it at the top
-  of the template. Now you can include this template anywhere without
-  worrying if the database information was assigned by the application
-  before hand.
- </para>
- <para>
   By default, php files are only included once even if called
   multiple times in the template. You can specify that it should be
   included every time with the <emphasis>once</emphasis> attribute.
@@ -128,18 +117,14 @@
 ]]>
   </programlisting>
  </example>
-
  <para>
-  See also
-  <link linkend="language.function.include">{include}</link>,
-   <link linkend="language.function.php">{php}</link>,
-    <link linkend="language.function.capture">{capture}</link>,
-    <link linkend="template.resources">Template Resources</link> and
-    <link linkend="tips.componentized.templates">Componentized Templates</link>
- </para>
-
+  See also <link linkend="language.function.include">{include}</link>,
+  <link linkend="language.function.php">{php}</link>, <link
+  linkend="language.function.capture">{capture}</link>, <link
+  linkend="template.resources">Template Resources</link> and <link
+  linkend="tips.componentized.templates">Componentized
+  Templates</link> </para>
 </sect1>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic