Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Include

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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