     Smarty
(  )


                  .      Smarty     www.smarty.php.net

,  -,    2- .
1-    Smarty (  /tpl), 2-  ,          (  )  (  /template).         (  ).
        top.php  bottom.php          ..   .   top.php     css,     ,     . ( _top.php  _bottom.tpl -     ,      )

    Smarty,           ,     ..     tpl/templates/. : index.tpl      , firm.tpl    , news_top.tpl    (       ), news.tpl       , search.tpl   , price   , comment_form.tpl       . 

    html-      Smarty.     .
- {*,    *}

- {$var}  ,        ,   .

{if $var == 1}
  
{/if}
     ,          -         (     if).

{section name=firms loop=$lastf_id}
<li><a href='firm.php?id={$lastf_id[firms]}'>{$lastf_name[firms]}</a><br>
<i> :  {$lastf_date[firms]}</i><hr>
{/section}
-    - ,    ( Smarty)      section

{fetch file='template/top.php'}   ,   -   ( , )      ,      .

           .     .
 ,
 
