Include and Assign

<{include file=PATH}> or <{includeq file=PATH}>
Used to include a file in theme.html; the difference is that the latter is more efficient
(but less secure).
<{assign var=NAME value=SOME_VALUE}>
Assign a value to a Smarty variable. For example:
<{assign var=theme_name value=$xoTheme->folderName}>
<{assign var=theme_name value=$xoTheme->folderName|cat:'/tpl'}>
Then you could use:
<{includeq file="$theme_name/tpl.html"}>
This would include  XOOPS/themes/yourtheme_tpl.html or  XOOPS/themes/tpl/yourtheme_tpl.html.

<< Меню  
Комментарии принадлежат их авторам. Мы не несем ответственности за их содержание.
Отправитель Нити