mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-17 06:25:19 +02:00
86 lines
2.2 KiB
XML
86 lines
2.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
|
<chapter id="smarty.constants">
|
|
<title>Constantes</title>
|
|
|
|
<sect1 id="constant.smarty.dir">
|
|
<title>SMARTY_DIR</title>
|
|
<para>
|
|
Il doit s'agir du chemin complet du répertoire où
|
|
se trouvent les fichiers classes de Smarty.
|
|
S'il n'est pas défini, Smarty essaiera alors d'en
|
|
déterminer automatiquement la valeur.
|
|
S'il est défini, le chemin doit se terminer par un slash.
|
|
</para>
|
|
<example>
|
|
<title>SMARTY_DIR</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// définit le chemin du répertoire de Smarty
|
|
define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
|
|
|
|
require_once(SMARTY_DIR."Smarty.class.php");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<para>
|
|
Voir aussi
|
|
<link linkend="language.variables.smarty.const">$smarty.const</link>.
|
|
</para>
|
|
</sect1>
|
|
<sect1 id="constant.smarty.core.dir">
|
|
<title>SMARTY_CORE_DIR</title>
|
|
<para>
|
|
Il doit s'agir du chemin complet du répertoire où
|
|
se trouvent les fichiers internes de Smarty. S'il n'est
|
|
pas défini, Smarty placera comme valeur par défaut la
|
|
valeur de la constante précédente
|
|
<link linkend="constant.smarty.dir">SMARTY_DIR</link>. S'il est
|
|
défini, le chemin doit se terminer par un slash. Utilisez cette
|
|
constante lorsque vous incluez manuellement n'importe
|
|
quel fichier core.*.
|
|
</para>
|
|
<example>
|
|
<title>SMARTY_CORE_DIR</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// chargement de core.get_microtime.php
|
|
|
|
require_once(SMARTY_CORE_DIR."core.get_microtime.php");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
|
|
<para>
|
|
Voir aussi
|
|
<link linkend="language.variables.smarty.const">$smarty.const</link>.
|
|
</para>
|
|
</sect1>
|
|
</chapter>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
--> |