mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-30 20:01:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			70 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="windows-1251"?>
 | |
| <!-- $Revision$ -->
 | |
| <!-- EN-Revision: 1.2 Maintainer: tony2001 Status: ready -->
 | |
| <refentry id="api.config.load">
 | |
|  <refnamediv>
 | |
|   <refname>config_load</refname>
 | |
|   <refpurpose></refpurpose>
 | |
|  </refnamediv>
 | |
|  <refsect1>
 | |
|   <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>
 | |
|    Ôóíêöèÿ çàãðóæàåò äàííûå èç ôàéëà êîíôèãóðàöèè
 | |
|    (config file) è ïîìåùàåò èõ â øàáëîí. Ýòî
 | |
|    àíàëîã ôóíêöèè øàáëîíà
 | |
|    <link linkend="language.function.config.load">config_load</link>.
 | |
|   </para>
 | |
|   <note>
 | |
|    <title>Òåõíè÷åñêîå çàìå÷àíèå</title>
 | |
|    <para>
 | |
|     Íà÷èíàÿ ñ âåðñèè Smarty 2.4.0, ïåðåìåííûå øàáëîíà ïîäñòàâëÿþòñÿ ïðè
 | |
|     âûçîâå fetch() èëè display(). Êîôèãóðàöèîííûå ïåðåìåííûå,
 | |
|     çàãðóæàåìûå ïðè âûçîâå config_load() âñåãäà ãëîáàëüíû.
 | |
|     Äëÿ ïîâûøåíèÿ ñêîðîñòè ðàáîòû, êîíôèãóðàöèîííûå ôàéëû òîæå
 | |
|     êîìïèëèðóþòñÿ è ê íèì ïðèìåíèòåëüíû íàñòðîéêè <link
 | |
|     linkend="variable.force.compile">force_compile</link> è <link
 | |
|     linkend="variable.compile.check">compile_check</link>.
 | |
|    </para>
 | |
|   </note>
 | |
|   <example>
 | |
|    <title>config_load</title>
 | |
|    <programlisting role="php">
 | |
| <![CDATA[
 | |
| <?php
 | |
| // çàãðóæàþòñÿ è íàçíà÷àþòñÿ êîíôèãóðàöèîííûå ïåðåìåííûå
 | |
| $smarty->config_load('my.conf');
 | |
| 
 | |
| // çàãðóçêà ñåêöèè êîíôèãóðàöèîííîãî ôàéëà
 | |
| $smarty->config_load('my.conf','foobar');
 | |
| ?>
 | |
| ]]>
 | |
|    </programlisting>
 | |
|   </example>
 | |
|  </refsect1>
 | |
| </refentry>
 | |
| <!-- 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
 | |
| -->
 |