|
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 |
toto Smarty Rookie
Joined: 28 Aug 2004 Posts: 14 Location: Russia, Tomsk
|
Posted: Sat Aug 28, 2004 5:00 am Post subject: include globals |
|
|
Здраствуйте
Решил перевести свой сайт на Смарти
и сталкнулся с такой проблеммой
если подключаю скрипт в tpl {include_php file="some"}
то есму не какие переменные не перадються из строки адреса
как бы их заюзать глобально или подскажите как быть ?? |
|
Back to top |
|
nihihi Smarty n00b
Joined: 04 Sep 2004 Posts: 4 Location: Kiev, Ukraine
|
Posted: Sat Sep 04, 2004 2:08 pm Post subject: |
|
|
попробуй
{include_php file="some.tpl" id=$id title="Заголовок"}
тогда в some.tpl
можно будет их использовать как
{$id}
{$title} |
|
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
|