title: Smarty calling a function inside a function
body: <p>we are required to learn <strong>smarty</strong> right now. and i am already into creating my own functions how do i call one function inside another function?</p>
  
  <p>smarty seems to call its function like</p>
  
  <pre><code>{function_name param1=val1}
  </code></pre>
  
  <p>i tried to put it inside the <strong>function.myfunction.php</strong> but smarty seems to parse
  { } only inside the .tpl files</p>
  
  <p>is there any way i could call them like</p>
  
  <pre><code>function foo($bar){
   $foo = function2(param1,param2);
   return $foo + $bar;
  }
  </code></pre>