title: Proceedural Code in Silex or maybe other Microframeworks
body: <p>I'm taking an application I wrote, a form, and rewriting it in Silex. It was, for various reasons, written like:</p>
  
  <ul>
  <li>page1.php
  <ul>
  <li>page1_process.php</li>
  </ul></li>
  <li>page2.php
  <ul>
  <li>page2_process.php</li>
  </ul></li>
  <li>page3.php
  <ul>
  <li>page3_process.php</li>
  </ul></li>
  </ul>
  
  <p>Where pageX.php is an HTML form with little PHP code, that passes data to the process script. The process script stores data to a Form object, and serializes the object in the Session.</p>
  
  <p>Currently, I have the pageX.php pages as TWIG template files and they work, but I don't know how to incorporate the logic of the procedural process scripts.</p>
  
  <p>I'm sure I don't copy the actual logic to the controllers.</p>