Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 8377d4bb25a3992aad680df2952f4b71 > files > 161

php-smarty-doc-2.6.26-1mdv2010.0.noarch.rpm

<HTML
><HEAD
><TITLE
>$config_overwrite</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Smarty Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Smarty Class Variables"
HREF="api.variables.html"><LINK
REL="PREVIOUS"
TITLE="$cache_modified_check"
HREF="variable.cache.modified.check.html"><LINK
REL="NEXT"
TITLE="$config_booleanize"
HREF="variable.config.booleanize.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Smarty Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="variable.cache.modified.check.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 12. Smarty Class Variables</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="variable.config.booleanize.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="variable.config.overwrite"
></A
>$config_overwrite</H1
><P
>&#13;    If set to <TT
CLASS="constant"
>TRUE</TT
>, the default then variables read in from
    <A
HREF="config.files.html"
>config files</A
> will overwrite each
    other. Otherwise, the variables will be pushed onto an array. This is
    helpful if you want to store arrays of data in config files, just list
  each element multiple times.
  </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN5065"
></A
><P
><B
>Example 12-4. Array of config #variables#</B
></P
><P
>&#13;      This examples uses
      <A
HREF="language.function.cycle.html"
><TT
CLASS="varname"
>{cycle}</TT
></A
>
      to output a table with alternating red/green/blue row colors
      with <TT
CLASS="parameter"
><I
>$config_overwrite</I
></TT
> = <TT
CLASS="constant"
>FALSE</TT
>.
    </P
><P
>The config file.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
># row colors
rowColors = #FF0000
rowColors = #00FF00
rowColors = #0000FF</PRE
></TD
></TR
></TABLE
><P
>&#13;      The template with a <A
HREF="language.function.section.html"
>&#13;      <TT
CLASS="varname"
>{section}</TT
></A
> loop.
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>&#60;table&#62;
  {section name=r loop=$rows}
  &#60;tr bgcolor="{cycle values=#rowColors#}"&#62;
    &#60;td&#62; ....etc.... &#60;/td&#62;
  &#60;/tr&#62;
  {/section}
&#60;/table&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;    See also
    <A
HREF="language.function.config.load.html"
><TT
CLASS="varname"
>{config_load}</TT
></A
>,
    <A
HREF="api.get.config.vars.html"
><TT
CLASS="varname"
>get_config_vars()</TT
></A
>,
    <A
HREF="api.clear.config.html"
><TT
CLASS="varname"
>clear_config()</TT
></A
>,
    <A
HREF="api.config.load.html"
><TT
CLASS="varname"
>config_load()</TT
></A
>
    and the <A
HREF="config.files.html"
>config files section</A
>.
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="variable.cache.modified.check.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="variable.config.booleanize.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>$cache_modified_check</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="api.variables.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>$config_booleanize</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>