title: PHP MVC Call Controller Function From View
body: <p>Trying to learn PHP MVC. So far so good until this moment. I have function like this in my ./controllers/index.php</p>
  
  <pre><code>&lt;?php
  class Index extends Controller {
  
      function __construct() {
          parent::__construct();
      }
  
      function showFeeds() {
          return 'done';
      }
  
  }
  ?&gt;
  </code></pre>
  
  <p>I know how to call model class and run showFeed() on model class. my problem is how to print 'done' on my ./views/index.php. what are the options for that.</p>
  
  <p>I already tried some of them listed below. but no luck.</p>
  
  <ol>
  <li>parent::showFeeds()</li>
  <li>$this->controller->showFeeds();</li>
  </ol>