title: Magento Model not loading
body: <p>I'm trying to create a simple module to magento. I've created my controller, my routings but for some reason I can't get access to my model. As far as I know, it's not even loaded.</p>
  
  <p>I get no error message, and the model object isn't created.</p>
  
  <p>What might be causing this?</p>
  
  <p>Here's some information:</p>
  
  <p>Controller:</p>
  
  <pre><code>class MyVendor_MyModule_IndexController extends Mage_Core_Controller_Front_Action
  {
  
      public function pingAction(){
  
          $model = Mage::getModel('mymodule/mymodule');       
          echo "&lt;pre&gt;" . print_r($model-&gt;load(1),true);
  
      }
  }
  </code></pre>
  
  <p>Model tree view:</p>
  
  <blockquote>
  <pre><code>MyVendor
  -MyModule
  -- controllers
  ---- IndexController.php
  -- Model
  ---- Mysql4
  -------- MyModule.php
  -------- MyModule
  ---------------- Collection.php
  ---- MyModule.php
  -- etc
  ---- config.xml
  </code></pre>
  </blockquote>
  
  <p>config.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;config&gt; 
      &lt;modules&gt;
          &lt;MyVendor_MyModule&gt;
              &lt;version&gt;0.0.1&lt;/version&gt;
          &lt;/MyVendor_MyModule&gt;
      &lt;/modules&gt;
      &lt;frontend&gt;
          &lt;routers&gt;
              &lt;mymodule&gt;
                  &lt;use&gt;standard&lt;/use&gt;
                  &lt;args&gt;
                      &lt;module&gt;MyVendor_MyModule&lt;/module&gt;
                      &lt;frontName&gt;mymodule&lt;/frontName&gt;
                  &lt;/args&gt;
              &lt;/mymodule&gt;
          &lt;/routers&gt;   
      &lt;/frontend&gt;
      &lt;global&gt;
          &lt;models&gt;
              &lt;mymodule&gt;
                  &lt;class&gt;MyVendor_MyModule_Model&lt;/class&gt;
                  &lt;resourceModel&gt;mymodule_mysql4&lt;/resourceModel&gt;
              &lt;/mymodule&gt;
              &lt;mymodule_mysql4&gt;
                  &lt;class&gt;MyVendor_MyModule_Model_Mysql4&lt;/class&gt;
                  &lt;entities&gt;
                      &lt;mymodule&gt;
                          &lt;table&gt;mymodule_table&lt;/table&gt;
                      &lt;/mymodule&gt;
                  &lt;/entities&gt;
              &lt;/mymodule_mysql4&gt;
          &lt;/models&gt;
          &lt;resources&gt;
                      &lt;mymodule_setup&gt;
                          &lt;setup&gt;
                                  &lt;module&gt;MyVendor_MyModule&lt;/module&gt;
                          &lt;/setup&gt;
                          &lt;connection&gt;
                                  &lt;use&gt;core_setup&lt;/use&gt;
                          &lt;/connection&gt;
                      &lt;/mymodule_setup&gt;
                      &lt;mymodule_setup&gt;
                          &lt;connection&gt;
                                  &lt;use&gt;core_write&lt;/use&gt;
                          &lt;/connection&gt;
                      &lt;/mymodule_setup&gt;
                      &lt;mymodule_setup&gt;
                          &lt;connection&gt;
                                  &lt;use&gt;core_read&lt;/use&gt;
                          &lt;/connection&gt;
                      &lt;/mymodule_setup&gt;
              &lt;/resources&gt;
      &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>And in my Model I've got a simple:</p>
  
  <pre><code>class MyVendor_MyModule_Model_Mysql4_MyModule extends Mage_Core_Model_Mysql4_Abstract
  {
      public function _construct()
      {   
          $this-&gt;_init('mymodule/mymodule', 'id');
      }
  }
  </code></pre>