sync with en

This commit is contained in:
messju
2007-06-24 08:57:40 +00:00
parent 15a1253909
commit 0eb25cabc1
2 changed files with 57 additions and 23 deletions

View File

@@ -23,8 +23,10 @@ all: html
PHP=@PHP@ PHP=@PHP@
LANG=@LANG@ LANG=@LANG@
NSGMLS=@SP_OPTIONS@ @NSGMLS@ # NSGMLS=@SP_OPTIONS@ @NSGMLS@
JADE=@SP_OPTIONS@ @JADE@ -D . -wno-idref NSGMLS=@NSGMLS@
# JADE=@SP_OPTIONS@ @JADE@ -D . -wno-idref
JADE=@JADE@ -D . -wno-idref
XMLLINT=@XMLLINT@ XMLLINT=@XMLLINT@
FOP=@FOP@ FOP=@FOP@
XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl
@@ -32,6 +34,7 @@ CATALOG=@CATALOG@
HTML_STYLESHEET=dsssl/html.dsl HTML_STYLESHEET=dsssl/html.dsl
PHPWEB_STYLESHEET=dsssl/php.dsl PHPWEB_STYLESHEET=dsssl/php.dsl
# }}} # }}}
#default behaviour #default behaviour

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.13 Maintainer: andreas Status: ready --> <!-- EN-Revision: 1.20 Maintainer: messju Status: ready -->
<part id="getting.started"> <part id="getting.started">
<title>Erste Schritte</title> <title>Erste Schritte</title>
<chapter id="what.is.smarty"> <chapter id="what.is.smarty">
@@ -162,11 +162,21 @@
</note> </note>
<para> <para>
Installieren Sie als erstes die Smarty-Library Dateien (den Installieren Sie als erstes die Smarty-Library Dateien (den
/libs/-Ordner der Smarty Distribution). Diese Dateien sollten von <filename class="directory">/libs/</filename>-Ordner der Smarty Distribution).
Ihnen NICHT editiert und von allen Applikationen verwendet Diese Dateien sollten von Ihnen NICHT editiert und von allen Applikationen
werden. Sie werden nur erneuert, wenn Sie eine neue Version von verwendet werden. Sie werden nur erneuert, wenn Sie eine neue Version von
Smarty installieren. Smarty installieren.
</para> </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> <note>
<title>Technische Bemerkung</title> <title>Technische Bemerkung</title>
<para> <para>
@@ -247,6 +257,19 @@ $smarty = new Smarty();
</programlisting> </programlisting>
</example> </example>
<example>
<title>SMARTY_DIR manuell setzen</title>
<programlisting role="php">
<![CDATA[
<?php
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
?>
]]>
</programlisting>
</example>
<example> <example>
<title>Absoluter Pfad &uuml;bergeben</title> <title>Absoluter Pfad &uuml;bergeben</title>
<programlisting role="php"> <programlisting role="php">
@@ -261,27 +284,32 @@ $smarty = new Smarty;
<example> <example>
<title>Library Verzeichnis dem Include-Pfad hinzuf&uuml;gen</title> <title>Library Verzeichnis dem Include-Pfad hinzuf&uuml;gen</title>
<programlisting role="php"> <programlisting role="php">
<![CDATA[ <![CDATA[
<?php ;;;;;;;;;;;;;;;;;;;;;;;;;
// editieren Sie php.ini, f&uuml;gen Sie das Smarty ; Paths and Directories ;
// Verzeichnis Ihrem include_path hinzu, und starten Sie den Webserver neu ;;;;;;;;;;;;;;;;;;;;;;;;;
// Danach sollte folgendes Funktionieren.
require('Smarty.class.php');
$smarty = new Smarty;
?> ; *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> </programlisting>
</example> </example>
<example>
<title>SMARTY_DIR manuell setzen</title> <example>
<title>Library Verzeichnis dem Include-Pfad mit
<literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> hinzuf&uuml;gen</title>
<programlisting role="php"> <programlisting role="php">
<![CDATA[ <![CDATA[
<?php <?php
define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); // *nix
require(SMARTY_DIR.'Smarty.class.php'); ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/');
$smarty = new Smarty;
// windows
ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/');
?> ?>
]]> ]]>
</programlisting> </programlisting>
@@ -434,7 +462,7 @@ chmod 770 /web/www.example.com/smarty/guestbook/cache/
{* Smarty *} {* Smarty *}
Hallo, {$name}! Hallo {$name}, herzlich Willkommen!
]]> ]]>
</screen> </screen>
</example> </example>
@@ -478,6 +506,9 @@ $smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/';
$smarty->assign('name','Ned'); $smarty->assign('name','Ned');
//** Die folgende Zeile "einkommentieren" um die Debug-Konsole anzuzeigen
//$smarty->debugging = true;
$smarty->display('index.tpl'); $smarty->display('index.tpl');
?> ?>
]]> ]]>
@@ -500,7 +531,7 @@ $smarty->display('index.tpl');
<para> <para>
Wenn Sie <filename>index.php</filename> nun in Ihrem Webbrowser Wenn Sie <filename>index.php</filename> nun in Ihrem Webbrowser
&ouml;ffnen, sollte 'Hallo, Ned!' ausgegeben werden. &ouml;ffnen, sollte 'Hallo, Ned, herzlich Willkommen!' ausgegeben werden.
</para> </para>
<para> <para>
Die Basis-Installation von Smarty w&auml;re somit beendet. Die Basis-Installation von Smarty w&auml;re somit beendet.