Files
smarty/docs/ru/programmers/api-variables/variable-global-assign.xml
freespace e799943aba Converted all line endings from CRLF to LF.
Sorry for such a big commit, but this should be done only once.
And please, don't kill me if I did a stupid thing :)
2004-11-25 23:26:13 +00:00

45 lines
1.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="windows-1251"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: tony2001 Status: ready -->
<sect1 id="variable.global.assign">
<title>$global_assign</title>
<para>
Список переменных, которые всегда неявно загружены.
Это удобно для того, чтобы глобальные или серверные
переменные были доступны во всех шаблонах без их непосредственной
ручной загрузки. Каждый элемент $global_assign может быть именем
глобальной переменной или парой ключ/значение, в которой ключ является
именем глобального массива, а значение - массивом переменых,
загруженных из этого глобального массива. По умолчанию переменная
$SCRIPT_NAME имеет значение, загруженное из $HTTP_SERVER_VARS
</para>
<note>
<title>Техническое замечание</title>
<para>
Доступ к серверным переменным может быть осуществлен через переменную
$smarty, например, {$smarty.server.SCRIPT_NAME}. См. раздел о переменной
<link linkend="language.variables.smarty">$smarty</link>.
</para>
</note>
</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
-->