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

karkas saita, kak realizovat eto v smarty?

 
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
Galleon
Smarty n00b


Joined: 21 Sep 2007
Posts: 1

PostPosted: Fri Sep 21, 2007 10:56 pm    Post subject: karkas saita, kak realizovat eto v smarty? Reply with quote

U menja est' obwij karkas dlja sajta, naprimer: v verhu zagolovok, posredine soderzhanie, a v nizu futer. Est' neskol'ko raznyh stranichek dlja otobrazhenija v soderzhanii.
Kak sdelat' tak, chto by pri obrawenii k kakoj-nibut' stranich'ke na sajte k nej avtomaticheski dobavljalis' zagolovok i futer?
Konechno mozhno napisat' shablon otdel'no dlja zagolovka, otdel'no dlja futera i otdel'no dlja soderzhanija. Potom v soderzhanii podkljuchit' zagolovok v verhu i futer v nizu. No v takogo sposoba est' ne dostatki. Vo pervyh, zagolovok i futer jeto odna tablica, kotoruju pridjotsja razbit' na dva shablona. Vo vtoryh jeto ne chem ne luchshe chem prostoe ispol'zovanie standartnoj funkcii php require.
Mozhet v smarty est' funkcii dlja reshenija jetoj zadachi?
Back to top
View user's profile Send private message
serious_sam
Smarty n00b


Joined: 04 Jun 2008
Posts: 3

PostPosted: Wed Jun 04, 2008 4:14 pm    Post subject: Reply with quote

huyase
Back to top
View user's profile Send private message Visit poster's website
zorer
Smarty n00b


Joined: 06 Jul 2008
Posts: 1

PostPosted: Sun Jul 06, 2008 11:41 am    Post subject: Reply with quote

serious_sam wrote:
huyase


a mojno ya toje nasru tut? - propiariu svoyy sigu
Back to top
View user's profile Send private message Visit poster's website
K!N6
Smarty n00b


Joined: 20 Aug 2008
Posts: 1

PostPosted: Wed Aug 20, 2008 8:40 am    Post subject: Reply with quote

Code:
$smarty->assign('content', $smarty->fetch('content.tpl'));
$smarty->display('page_carkas.tpl');

Code:
{* файл: page_carkas.tpl *}
<html>
<head>
     <title>Заголовок страницы</title>
</head>
<body>
     <center>{$content}</center>
</body>
</html>

Code:
{* файл: content.tpl *}
<h1>Содержание страницы</h1>
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