cvs: smarty /docs Makefile.in /docs/de getting-started.xml
[email protected] ("Messju Mohr") Sun, 24 Jun 2007 08:57:40 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvsmessju1182675460@cvsserver> |
messju Sun Jun 24 08:57:40 2007 UTC
Modified files:
/smarty/docs Makefile.in
/smarty/docs/de getting-started.xml
Log:
sync with en
http://cvs.php.net/viewvc.cgi/smarty/docs/Makefile.in?r1=1.15&r2=1.16&diff_format=u
Index: smarty/docs/Makefile.in
diff -u smarty/docs/Makefile.in:1.15 smarty/docs/Makefile.in:1.16
--- smarty/docs/Makefile.in:1.15 Sat Apr 21 12:07:02 2007
+++ smarty/docs/Makefile.in Sun Jun 24 08:57:40 2007
@@ -14,7 +14,7 @@
#
#
-# $Id: Makefile.in,v 1.15 2007/04/21 12:07:02 takagi Exp $
+# $Id: Makefile.in,v 1.16 2007/06/24 08:57:40 messju Exp $
#
all: html
@@ -23,8 +23,10 @@
PHP=@PHP@
LANG=@LANG@
-NSGMLS=@SP_OPTIONS@ @NSGMLS@
-JADE=@SP_OPTIONS@ @JADE@ -D . -wno-idref
+# NSGMLS=@SP_OPTIONS@ @NSGMLS@
+NSGMLS=@NSGMLS@
+# JADE=@SP_OPTIONS@ @JADE@ -D . -wno-idref
+JADE=@JADE@ -D . -wno-idref
XMLLINT=@XMLLINT@
FOP=@FOP@
XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl
@@ -32,6 +34,7 @@
HTML_STYLESHEET=dsssl/html.dsl
PHPWEB_STYLESHEET=dsssl/php.dsl
+
# }}}
#default behaviour
http://cvs.php.net/viewvc.cgi/smarty/docs/de/getting-started.xml?r1=1.11&r2=1.12&diff_format=u
Index: smarty/docs/de/getting-started.xml
diff -u smarty/docs/de/getting-started.xml:1.11 smarty/docs/de/getting-started.xml:1.12
--- smarty/docs/de/getting-started.xml:1.11 Tue Apr 3 08:13:51 2007
+++ smarty/docs/de/getting-started.xml Sun Jun 24 08:57:40 2007
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
-<!-- EN-Revision: 1.13 Maintainer: andreas Status: ready -->
+<!-- $Revision: 1.12 $ -->
+<!-- EN-Revision: 1.20 Maintainer: messju Status: ready -->
<part id="getting.started">
<title>Erste Schritte</title>
<chapter id="what.is.smarty">
@@ -162,11 +162,21 @@
</note>
<para>
Installieren Sie als erstes die Smarty-Library Dateien (den
- /libs/-Ordner der Smarty Distribution). Diese Dateien sollten von
- Ihnen NICHT editiert und von allen Applikationen verwendet
- werden. Sie werden nur erneuert, wenn Sie eine neue Version von
+ <filename class="directory">/libs/</filename>-Ordner der Smarty Distribution).
+ Diese Dateien sollten von Ihnen NICHT editiert und von allen Applikationen
+ verwendet werden. Sie werden nur erneuert, wenn Sie eine neue Version von
Smarty installieren.
</para>
+ <para>In the examples below the Smarty tarball has been unpacked to:
+ <itemizedlist>
+ <listitem><para>
+ <filename class="directory">/usr/local/lib/Smarty-v.e.r/</filename>
+ unter *nix-basierten Betriebsystemen</para></listitem>
+ <listitem><para> und
+ <filename class="directory">c:\webroot\libs\Smarty-v.e.r\</filename>
+ unter Windows-Umgebungen.</para></listitem>
+ </itemizedlist>
+ </para>
<note>
<title>Technische Bemerkung</title>
<para>
@@ -248,11 +258,12 @@
</example>
<example>
- <title>Absoluter Pfad übergeben</title>
+ <title>SMARTY_DIR manuell setzen</title>
<programlisting role="php">
<![CDATA[
<?php
-require('/usr/local/lib/php/Smarty/Smarty.class.php');
+define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
+require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
?>
]]>
@@ -260,28 +271,45 @@
</example>
<example>
- <title>Library Verzeichnis dem Include-Pfad hinzufügen</title>
+ <title>Absoluter Pfad übergeben</title>
<programlisting role="php">
<![CDATA[
<?php
-// editieren Sie php.ini, fügen Sie das Smarty
-// Verzeichnis Ihrem include_path hinzu, und starten Sie den Webserver neu
-// Danach sollte folgendes Funktionieren.
-require('Smarty.class.php');
+require('/usr/local/lib/php/Smarty/Smarty.class.php');
$smarty = new Smarty;
-
?>
]]>
</programlisting>
</example>
+
<example>
- <title>SMARTY_DIR manuell setzen</title>
+ <title>Library Verzeichnis dem Include-Pfad hinzufügen</title>
+ <programlisting role="php">
+<![CDATA[
+;;;;;;;;;;;;;;;;;;;;;;;;;
+; Paths and Directories ;
+;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; *nix: "/path1:/path2"
+include_path = ".:/usr/share/php:/usr/local/lib/Smarty-v.e.r/libs/"
+
+; Windows: "\path1;\path2"
+include_path = ".;c:\php\includes;c:\webroot\libs\Smarty-v.e.r\libs\"
+]]>
+</programlisting>
+</example>
+
+<example>
+ <title>Library Verzeichnis dem Include-Pfad mit
+ <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> hinzufügen</title>
<programlisting role="php">
<![CDATA[
<?php
-define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
-require(SMARTY_DIR.'Smarty.class.php');
-$smarty = new Smarty;
+// *nix
+ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/');
+
+// windows
+ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/');
?>
]]>
</programlisting>
@@ -434,7 +462,7 @@
{* Smarty *}
-Hallo, {$name}!
+Hallo {$name}, herzlich Willkommen!
]]>
</screen>
</example>
@@ -478,6 +506,9 @@
$smarty->assign('name','Ned');
+//** Die folgende Zeile "einkommentieren" um die Debug-Konsole anzuzeigen
+//$smarty->debugging = true;
+
$smarty->display('index.tpl');
?>
]]>
@@ -500,7 +531,7 @@
<para>
Wenn Sie <filename>index.php</filename> nun in Ihrem Webbrowser
- öffnen, sollte 'Hallo, Ned!' ausgegeben werden.
+ öffnen, sollte 'Hallo, Ned, herzlich Willkommen!' ausgegeben werden.
</para>
<para>
Die Basis-Installation von Smarty wäre somit beendet.