title: Fatal error: Class 'AppModel' not found in .../lib/Cake/Utility/ClassRegistry.php on line 186
body: <p>I'm trying to define a shell for my Cakephp App. This is the code:</p>
  
  <pre><code>&lt;?php
  
  App::uses('AppModel','Model');
  
  class UserShell extends AppShell {
  
      public $uses = array('User');
  
      public function show() {
          $user = $this-&gt;User-&gt;findByUsername($this-&gt;args[0]);
          $this-&gt;out(print_r($user, true));
          }
  }
  
  ?&gt;
  </code></pre>
  
  <p>but when I try to execute the command </p>
  
  <pre><code>./cake user show anyUserName
  </code></pre>
  
  <p>the console returns the error</p>
  
  <pre><code>Class 'AppModel' not found in /var/www/cakeprova_2.5.7/lib/Cake/Utility/ClassRegistry.php on line 186
  </code></pre>
  
  <p>I have the file AppModel.php at its own place, so I don't know what's wrong... Can anybody help me please?</p>