cvs: smarty /docs/de/programmers api-functions.xml caching.xml smarty-constants.xml
[email protected] ("Messju Mohr") Fri, 09 Dec 2005 18:59:24 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvsmessju1134154764@cvsserver> |
messju Fri Dec 9 13:59:24 2005 EDT
Modified files:
/smarty/docs/de/programmers api-functions.xml caching.xml
smarty-constants.xml
Log:
sync with en
http://cvs.php.net/diff.php/smarty/docs/de/programmers/api-functions.xml?r1=1.6&r2=1.7&ty=u
Index: smarty/docs/de/programmers/api-functions.xml
diff -u smarty/docs/de/programmers/api-functions.xml:1.6 smarty/docs/de/programmers/api-functions.xml:1.7
--- smarty/docs/de/programmers/api-functions.xml:1.6 Thu Feb 10 14:08:28 2005
+++ smarty/docs/de/programmers/api-functions.xml Fri Dec 9 13:59:22 2005
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
-<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- EN-Revision: 1.10 Maintainer: andreas Status: ready -->
<chapter id="api.functions">
- <title>Methoden</title>
+ <title>Methoden der Klasse Smarty</title>
&programmers.api-functions.api-append;
&programmers.api-functions.api-append-by-ref;
&programmers.api-functions.api-assign;
http://cvs.php.net/diff.php/smarty/docs/de/programmers/caching.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/de/programmers/caching.xml
diff -u smarty/docs/de/programmers/caching.xml:1.3 smarty/docs/de/programmers/caching.xml:1.4
--- smarty/docs/de/programmers/caching.xml:1.3 Fri Jul 16 10:32:29 2004
+++ smarty/docs/de/programmers/caching.xml Fri Dec 9 13:59:22 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
<chapter id="caching">
<title>Caching</title>
<para>
@@ -9,8 +9,10 @@
der Ausgabe in einer Datei zu beschleunigen. Falls eine gecachte Version
des Aufrufs existiert, wird diese ausgegeben, anstatt die Ausgabe neu zu generieren.
Caching kann die Performance vor allem dann deutlich verbessern, wenn Templates
- längere Rechenzeit beanspruchen. Weil die Ausgabe von display() und fetch() gecached
- wird, kann ein Cache verschiedene Templates, Konfigurationsdateien usw. enthalten.
+ längere Rechenzeit beanspruchen. Weil die Ausgabe von <link
+ linkend="api.display">display()</link> und <link
+ linkend="api.fetch">fetch()</link> gecached wird, kann ein Cache
+ verschiedene Templates, Konfigurationsdateien usw. enthalten.
</para>
<para>
Da Templates dynamisch sind ist es wichtig darauf zu achten, welche Inhalte
http://cvs.php.net/diff.php/smarty/docs/de/programmers/smarty-constants.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/de/programmers/smarty-constants.xml
diff -u smarty/docs/de/programmers/smarty-constants.xml:1.2 smarty/docs/de/programmers/smarty-constants.xml:1.3
--- smarty/docs/de/programmers/smarty-constants.xml:1.2 Fri Jul 16 10:32:29 2004
+++ smarty/docs/de/programmers/smarty-constants.xml Fri Dec 9 13:59:22 2005
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
- <chapter id="smarty.constants">
- <title>Konstanten</title>
- <para></para>
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready -->
+<chapter id="smarty.constants">
+ <title>Konstanten</title>
- <sect1 id="constant.smarty.dir">
- <title>SMARTY_DIR</title>
+ <sect1 id="constant.smarty.dir">
+ <title>SMARTY_DIR</title>
<para>
- Definiert den absoluten Systempfad zu den Smarty Klassendateien. Falls
- der Wert nicht definiert ist, versucht Smarty ihn automatisch zu ermitteln.
- Der Pfad muss mit einem '/'-Zeichen enden.
+ Definiert den <emphasis role="bold">absoluten
+ Systempfad</emphasis> zu den Smarty Klassendateien. Falls der Wert
+ nicht definiert ist, versucht Smarty ihn automatisch zu ermitteln.
+ <emphasis role="bold">Der Pfad muss mit einem '/'-Zeichen
+ enden</emphasis>.
</para>
<example>
<title>SMARTY_DIR</title>
@@ -18,14 +19,51 @@
<![CDATA[
<?php
// Pfad zum Smarty Verzeichnis setzen
-define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
+define('SMARTY_DIR', '/usr/local/lib/php/Smarty/libs/');
+
+// Pfad zum Smarty Verzeichnis setzen (unter Windows)
+define('SMARTY_DIR', 'c:/usr/local/lib/php/Smarty/libs/');
+
+// Smarty einbinden (der Dateiname beginnt mit großem 'S')
+require_once(SMARTY_DIR . 'Smarty.class.php');
+?>
+]]>
+ </programlisting>
+ </example>
+ <para>
+ Siehe auch <link
+ linkend="language.variables.smarty.const">$smarty.const</link> und
+ <link linkend="variable.php.handling">$php_handling
+ constants</link>
+ </para>
+ </sect1>
+ <sect1 id="constant.smarty.core.dir">
+ <title>SMARTY_CORE_DIR</title>
+ <para>
+ Dies ist der absolute Systempfad zu den Smarty Kerndateien. Wenn
+ nicht vorher definiert, dann definiert Smarty diesen Wert mit
+ <emphasis>internals/</emphasis> unterhalb des Verzeichniss <link
+ linkend="constant.smarty.dir">SMARTY_DIR</link>. Wenn angegeben,
+ dann muss dieser Wert mit einem '/' enden.
+ </para>
+ <example>
+ <title>SMARTY_CORE_DIR</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+// Laden von core.get_microtime.php
+require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
-require_once(SMARTY_DIR."Smarty.class.php");
?>
]]>
- </programlisting>
- </example>
- </sect1>
+ </programlisting>
+ </example>
+ <para>
+ Siehe auch:
+ <link linkend="language.variables.smarty.const">$smarty.const</link>
+ </para>
+ </sect1>
</chapter>
<!-- Keep this comment at the end of the file
Local variables: