title: Magento Fatal error about load()
body: <p>here is my problem, can anyone please show me the mistake? I tried as much as I can but still couldnt find the mistake...Hope to fix it because it has already taken me two days to face the problem.... It's terrible...<br />
  Call to a member function load() on a non-object in...
  my config.xml<br />
  <code>&lt;global&gt;
      &lt;models&gt;
      &lt;appointment&gt;
          &lt;class&gt;Ltsport_Appointment_Model&lt;/class&gt;
          &lt;resourceModel&gt;appointment_mysql4&lt;/resourceModel&gt;
      &lt;/appointment&gt;
      &lt;appointment_mysql4&gt;
      &lt;class&gt;Ltsport_Appointment_Model_Mysql4&lt;/class&gt;
      &lt;entities&gt;
          &lt;apptshow&gt;
              &lt;table&gt;appt_master&lt;/table&gt;
          &lt;/apptshow&gt;
      &lt;/entities&gt;
      &lt;/appointment_mysql4&gt;
      &lt;/models&gt;
      &lt;resources&gt;
          &lt;appointment_write&gt;
              &lt;connection&gt;
                      &lt;use&gt;core_write&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/appointment_write&gt;
          &lt;appointment_read&gt;
              &lt;connection&gt;
                 &lt;use&gt;core_read&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/appointment_read&gt;<br>
          &lt;appt_setup&gt;
              &lt;setup&gt;
                  &lt;module&gt;Ltsport_Appointment&lt;/module&gt;
                  &lt;class&gt;Ltsport_Appointment_Model_Resource_Mysql4_Setup&lt;/class&gt;
              &lt;/setup&gt;
              &lt;connection&gt;
                  &lt;use&gt;core_setup&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/appt_setup&gt;
      &lt;/resources&gt;
    &lt;/global&gt;</code>
  my IndexController.php</p>
  
  <pre><code>&lt;?php 
  class Ltsport_Appointment_IndexController extends Mage_Core_Controller_Front_Action{
     public function indexAction(){
          echo "Index!";
     }
      public function setupAction(){
          $params = $this-&gt;getRequest()-&gt;getParams();
          $apptshow = Mage::getModel('appointment/apptshow');
          $apptshow-&gt;load($params['id']);
          $data = $apptshow-&gt;getData();
          var_dump($data);
     }
  }
  ?&gt;`
  </code></pre>
  
  <p>Apptshow.php at \Model<br /></p>
  
  <pre><code>&lt;?php
  
  class Ltsport_Appointment_Model_Mysql4_Apptshow extends Mage_Core_Model_Abstract{
  protected function _construct()
  {
      parent::_construct();
      $this-&gt;_init('appointment/apptshow');
  }
  }
  ?&gt;
  </code></pre>
  
  <p>Apptshow.php at \Model\Mysql4\ <br /></p>
  
  <pre><code>&lt;?php
  
  class Ltsport_Appointment_Model_Mysql4_Apptshow extends Mage_Core_Model_Abstract{
  protected function _construct()
  {
      parent::_construct();
      $this-&gt;_init('appointment/apptshow');
  }
  }
  ?&gt;
  </code></pre>