title: how to make smarty display php function return
body: <p>I have this function in php file it is include already for every page </p>
  
  <pre><code>function ismobile(){
  $detect = new Mobile_Detect;
  if($detect-&gt;isiOS()){
  return'ios';
  }elseif($detect-&gt;isAndroidOS()){
  return'android';
  } }
  </code></pre>
  
  <p>I try to get mobile system in smarty tpl file using this code </p>
  
  <pre><code>{$ismobile} 
  </code></pre>
  
  <p>But it not display system like ios if i am using iphone  or android</p>