mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
huge sync with english by the translator (Mario Ramirez)
thanks
This commit is contained in:
@@ -2,26 +2,27 @@
|
||||
<!-- $Revision$ -->
|
||||
<refentry id="api.config.load">
|
||||
<refnamediv>
|
||||
<refname>config_load</refname>
|
||||
<refpurpose></refpurpose>
|
||||
<refname>config_load()</refname>
|
||||
<refpurpose>Carga el archivo de configuraci<63>n y lo asigna al template</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title />
|
||||
<title>Descripci<EFBFBD>n</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>config_load</methodname>
|
||||
<methodparam><type>string</type><parameter>file</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Esto carga el <parameter>archivo</parameter> de configuraci<63>n de
|
||||
Esto carga el <link linkend="config.files">archivo de configuraci<63>n</link> de
|
||||
datos y lo asigna al template. Esto funciona id<69>ntico a la funci<63>n
|
||||
<link linkend="language.function.config.load">config_load</link>.
|
||||
<link linkend="language.function.config.load">{config_load}</link>.
|
||||
</para>
|
||||
<note>
|
||||
<title>Nota T<>cnica</title>
|
||||
<para>
|
||||
A partir de Smarty 2.4.0, las variables de template asignadas son
|
||||
mantenidas a trav<61>s de fetch() y display(). Las variables de
|
||||
mantenidas a trav<61>s de <link linkend="api.fetch">fetch()</link> y
|
||||
<link linkend="api.display">display()</link>. Las variables de
|
||||
configuraci<63>n cargadas de config_load() son siempre de alcance global.
|
||||
Los archivos de configuracion tambi<62>n son compilados para
|
||||
execución rapida, y respetar el
|
||||
@@ -31,7 +32,7 @@
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>config_load</title>
|
||||
<title>config_load()</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
@@ -44,6 +45,14 @@ $smarty->config_load('my.conf', 'foobar');
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Ver tambi<62>n
|
||||
<link linkend="language.function.config.load">{config_load}</link>,
|
||||
<link linkend="api.get.config.vars">get_config_vars()</link>,
|
||||
<link linkend="api.clear.config">clear_config()</link>,
|
||||
y
|
||||
<link linkend="language.config.variables">config variables</link>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
Reference in New Issue
Block a user