title: How can i use custom function or method in volt
body: <p>How can i use a function or method in volt?</p>
  
  <p>a function same this:</p>
  
  <pre><code>function SumNumber($number1,$numbertwo)
  {
    return $number1+$numbertwo;
  }
  </code></pre>
  
  <p>or this method on controller </p>
  
  <pre><code>public function SumNumber($number1,$numbertwo)
  {
    return $number1+$numbertwo;
  }
  </code></pre>
  
  <p>how can i register this function or method through controller?</p>