Answer the question
In order to leave comments, you need to log in
How to display a function in smarti?
hello, tell me how to output a function from a php file to a template
, I have such a function
function getUser($id, $not_formatted=0) {
global $db;
global $appearance_settings, $settings;
if(isset($array_users[$i]['user_info']) && $array_users[$i]['user_info']) $array_users[$i]['user_info_formatted']= str_replace("\n", "<br>", $array_users[$i]['user_info']);
}
в файле user.php
// saved searches no
if($ads_settings['saved_searches_enabled']) {
$ss = new saved_searches;
$no_saved_searches = $ss->getNoSavedSearches($crt_usr);
$smarty->assign("no_saved_searches",$no_saved_searches);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question