title: Slim pass class instance to $app
body: <pre><code>&lt;?php
    require 'vendor/autoload.php';
  
    // Include all controllers
    foreach(glob("controllers/*.php") as $controller)
    {
      include $controller;
    }
  
    // Instantiate a new Slip application
    $app = new \Slim\Slim(array(
      'debug' =&gt; true
    ));
  
    // HOME CONTROLLER
    $home = new Home;
    $vr = $home-&gt;index();
  
    // Register application routes
    $app-&gt;get('/', function () {
        echo $vr;
    });
  
    // Run application
    $app-&gt;run();
  </code></pre>
  
  <p>This is my controller I want to use controllers and not keep everything in this single file. Anyhow I have a controllers map where I keep all my controllers. I automatically include them all at start however I can't seem to pass <code>$home</code> variable to <code>get()</code> method so I could call <code>$vr</code> indede it or <code>$home-&gt;index()</code></p>