title: Call to undefined function isLoggedIn()
body: <p>I do not understand why the <code>isLoggedIn();</code> function isn't defined according to the error I am receiving. I have two pages one is a .php where functions are defined and a .phtml where I am having the issue. Below is the code for both.</p>
  
  <pre><code>public function isLoggedIn() {
   if(!session_id()) {
       return false;
   }
   else
   {
       return true;
   }
   }
  </code></pre>
  
  <p>Above is on the .php, which shows its function. </p>
  
  <pre><code>&lt;?php
     $is_logged_in = isLoggedIn();
     if($is_logged_in) {
       echo '&lt;li&gt;&lt;a href="logout.php"&gt;Logout&lt;/a&gt;&lt;/li&gt;';
     }
     else {
       echo '&lt;li&gt;&lt;a href="login.php"&gt;Login&lt;/a&gt;&lt;/li&gt;';
     }
  ?&gt;
  </code></pre>
  
  <p>Above is on the .phtml, which should work, as far as I am aware.</p>
  
  <p>The very top of the .phtml document has </p>
  
  <pre><code>&lt;?php require ('Models/SessionData.php');
  </code></pre>
  
  <p>Which is the name and location of the functions definition. </p>
  
  <p>On the IDE there is no sign of anything being wrong.</p>
  
  <p>Help would be appreciated.</p>