mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
sync with en
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready -->
|
||||
<!-- 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;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||
<!-- 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
|
||||
|
@@ -1,16 +1,17 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||
<chapter id="smarty.constants">
|
||||
<title>Konstanten</title>
|
||||
<para></para>
|
||||
<!-- 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/');
|
||||
|
||||
require_once(SMARTY_DIR."Smarty.class.php");
|
||||
// Pfad zum Smarty Verzeichnis setzen (unter Windows)
|
||||
define('SMARTY_DIR', 'c:/usr/local/lib/php/Smarty/libs/');
|
||||
|
||||
// Smarty einbinden (der Dateiname beginnt mit gro<72>em 'S')
|
||||
require_once(SMARTY_DIR . 'Smarty.class.php');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
</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');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</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:
|
||||
|
Reference in New Issue
Block a user