Output buffering not rendering php content
<p>I have a template controller. In this controller I load the appropriate template with <code>require_once</code> like this:</p>

<pre><code>ob_start();
$userInfo = $user-&gt;userDetails($_SESSION["userId"]);
require_once('/templates/1/file1.php');
$output = ob_get_clean();
</code></pre>

<p>File1.php (the file being "required" in the template controller) needs access to <code>$userInfo</code> however, it does not. Am I doing something wrong with the output buffer? </p>
