title: php class constructor
body: <p>Hi I have a class as follows:</p>
  
  <pre><code>&lt;?php
  include '(OrderContainer.php)';
  class OrderAuthenticator
  {
       private $OrderObj;
       public function __construct($Order)
      {
          $this-&gt;OrderObj = $Order;
           echo 'Created an instance os OrderContainer&lt;br/&gt;';
      }
  
      //Misc methods.....
  
  
  }
  ?&gt;
  </code></pre>
  
  <p>Then I have a method that tries to instantiate this object</p>
  
  <pre><code>&lt;?php
  include ('OrderAuthenticator.php');
  
  $Authenticator = new OrderAuthenticator($OrderObj);
  
  ?&gt;
  </code></pre>
  
  <p>Problem is that in the object is not instantiated.....
  No matter what I do ..... Im new to PHP so I was wondering if there is something quite obvious here that Im not doing?</p>
  
  <p>Could someone please give me a hand..
  Thanks</p>