title: Issue With Objects In PHP
body: <p>I have a problem with objects in PHP.</p>
  
  <p><a href="http://codepad.org/HdqCVJlw" rel="nofollow">http://codepad.org/HdqCVJlw</a></p>
  
  <pre><code>&lt;?php
  error_reporting( E_ALL | E_STRICT );
  ##
  class Loader {
      function view() {
          echo 'I did it! )';
      }
  }
  class Controller {
      public $loader;
      function __construct() {
          $this -&gt; loader = new Loader;
      }
  }
  
  ##
  class Foo extends Controller {
      function index() {
          $this -&gt; loader -&gt; view();
      }
  }
  </code></pre>
  
  <p>There are three classes: <code>Loader</code>, <code>Controller</code> and <code>Foo</code>. I want to use method of class Loader in <code>Foo</code> class. I know that <code>__construct()</code> wouldn't run because <code>Foo</code> extends from <code>Controller</code>, but anyway I don't get any error.</p>
  
  <p>So how to use that method there with condition that in <code>Foo</code> I won't need to write more code?</p>
  
  <p>P.S. I'm creating MVC...</p>