|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
oleg46 Smarty n00b
Joined: 09 May 2013 Posts: 1
|
Posted: Thu May 09, 2013 6:04 pm Post subject: Include |
|
|
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 |
|
|
|
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
|