2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-14 04:29:44 +00:00
|
|
|
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready -->
|
|
|
|
|
|
<sect1 id="api.config.load">
|
2004-04-13 11:47:32 +00:00
|
|
|
|
<title>config_load</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>
|
|
|
|
|
|
Isso carrega o arquivo de configura<72><61>o de dados e fixa-o para o
|
|
|
|
|
|
template. Isso funciona id<69>ntico a fun<75><6E>o <link
|
|
|
|
|
|
linkend="language.function.config.load">
|
|
|
|
|
|
config_load</link>.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<note>
|
|
|
|
|
|
<title>Notas T<>cnicas</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
<20> partir da Smarty 2.4.0, vari<72>veis de template fixadas s<>o
|
|
|
|
|
|
mantidas atrav<61>s de fetch() e display(). Vari<72>veis de configura<72><61>o carregadas
|
|
|
|
|
|
de config_load() s<>o sempre de escopo global. Arquivos de configura<72><61>o
|
|
|
|
|
|
tamb<6D>m s<>o compilados para execu<63><75>o r<>pida, e repeita o <link
|
|
|
|
|
|
linkend="variable.force.compile">force_compile</link> e <link
|
|
|
|
|
|
linkend="variable.compile.check">compile_check</link> par<61>metros de configura<72><61>o.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</note>
|
|
|
|
|
|
<example>
|
|
|
|
|
|
<title>config_load</title>
|
|
|
|
|
|
<programlisting>
|
|
|
|
|
|
// load config variables and assign them
|
|
|
|
|
|
$smarty->config_load('my.conf');
|
|
|
|
|
|
|
|
|
|
|
|
// load a section
|
|
|
|
|
|
$smarty->config_load('my.conf','foobar');</programlisting>
|
|
|
|
|
|
</example>
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
<!-- 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
|
|
|
|
|
|
-->
|