title: Getting Notice (8): Undefined property error in CakePHP 1.2.5
body: <p>I have no idea why I should get the above error. Also, in the same line, I'm getting the dreadful 
  <code>Fatal error: Call to a member function query() on a non-object</code> error.</p>
  
  <p>I have a controller <code>home_loan_installment_repayment_controller.php</code>, which has an <code>index</code> and <code>view</code> method.</p>
  
  <pre><code>class HomeLoanInstallmentRepaymentController extends AppController {
  
      function index() {
          //some work done here
      }
  
      function view() {
          //some work done here
      }
  }
  </code></pre>
  
  <p>In the view page <code>index.ctp</code> of this controller, I'm calling another controller <code>home_loan_installment_repayment_details_controller.php</code>, which also has index() and view() methods. Something like this:</p>
  
  <pre><code>&lt;td class="actions"&gt;
       &lt;?php echo $html-&gt;link(__('View', true), array('action' =&gt; 'view', 'branch_id' =&gt; $branch_id, 'date' =&gt; $info[$i]['HomeLoanInstallmentRepayments']['REPAYMENT_DATE'])); ?&gt;
        &lt;a href="/sdb/HomeLoanInstallmentRepayment/edit/2014-11-25/branch_id:18"&gt;Edit&lt;/a&gt;
        &lt;a onclick="return confirm('Are you sure you want to delete # 2014-11-25?');" href="/sdb/HomeLoanInstallmentRepayment/delete/2014-11-25/branch_id:18"&gt;Delete&lt;/a&gt;
        &lt;!--The following link will navigate to a different controller--&gt;
        &lt;a href="/sdf-mis/HomeLoanInstallmentRepaymentDetails/index/branch_id:18"&gt;Installment Details&lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>In my <code>home_loan_installment_repayment_details_controller.php</code> controller, the following thing is done:</p>
  
  <pre><code>class HomeLoanInstallmentRepaymentDetailsController extends AppController {
  
          function index() {
              //In the following line, I'm getting the two errors
               $info = $this-&gt;HomeLoanInstallmentRepaymentDetails-&gt;query("SOME SQL QUERY");
               echo "&lt;pre&gt;";
               print_r($info);
               die();
          }
  
          function view() {
              //some work done here
          }
      }
  </code></pre>
  
  <p>After I $print_r($info), I get the errors:</p>
  
  <pre><code>Notice (8): Undefined property: HomeLoanInstallmentRepaymentDetailsController::$HomeLoanInstallmentRepaymentDetails [APP\controllers\home_loan_installment_repayment_details_controller.php, line 5
  
  Fatal error: Call to a member function query() on a non-object in C:\wamp\www\sdb\app\controllers\home_loan_installment_repayment_details_controller.php on line 5
  </code></pre>
  
  <p>Note that I don't have any models for the above two controllers and I bypassed using models.</p>