Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Include

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
oleg46
Smarty n00b


Joined: 09 May 2013
Posts: 1

PostPosted: Thu May 09, 2013 6:04 pm    Post subject: Include Reply with quote

Est temlpate s verstkoy
Code:
   <div id="main">
        <div id="header">
            <a href="/"id="header_logo"></a>
            <div id="header_logo_19"></div>
            <div id="header_slogan">Откройте жизнь без аллергии</div>
            <input id="search" type="text"/>
           
        </div>
        <div id="menu">
            {include file="build/menu.tpl"}
        </div>

i tak dalee


ya v etu verstku vstavlayu includom kusok is drugogo template {include file="build/menu.tpl"},

Code:
<ul>
    {foreach from=$menu key=key item=i}
        <li><a href="{$i.link}">{$i.name}</a></li>
    {/foreach}
</ul>



no etot kusok vstavlyaetsa ne tuda, gde propisan include, to est posle <div id="menu">, a vstavlyaetsa posle <body> v nachale stranicy/ Pochemu? I kak ispravit?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP