title: Can I declare a custom function in code section?
body: <p>I'm trying to declare and call a function in <code>php</code> code section of a partial but october does not see it.
  Here is what the code looks like:</p>
  
  <pre><code>function onStart() {
      return sayHi();
  }
  
  function sayHi() {
      return 'Hi';
  }
  </code></pre>
  
  <p>Would you please tell me what is wrong about this?
  Are the only allowed functions here those which relate to page life cycle? (onStart(), onEnd(), onInit(), onRun() .. etc)</p>