title: Unable to load model in controller of zend framework
body: <p>I am getting below error when trying to load model in a controller
  <strong>Fatal error: Class 'Admin_Model_Adminlogin' not found in /var/www/html/ZendTecAdmin/application/controllers/AdminController.php on line 27</strong></p>
  
  <p>Below is the controller
  AdminController.php</p>
  
  <pre><code>&lt;?php
  
  class AdminController extends Zend_Controller_Action {
  
      public function init() {
  
          $this-&gt;_helper-&gt;layout-&gt;setLayout('layout_admin');
          //$this-&gt;view-&gt;headScript()-&gt;appendFile($view-&gt;getBaseUrl.'js/jquery-1.10.2.min.js');
          //$this-&gt;view-&gt;headScript()-&gt;appendFile($view-&gt;getBaseUrl.'js/validate.js');
      }
  
      public function indexAction() {
          echo 'Welcome';
      }
  
      public function loginAction() {
          $mysession = new Zend_Session_Namespace('Admin');                
          $form = new Application_Form_loginForm();
          $this-&gt;view-&gt;form = $form;
      //Preform Admin login action
          if($this-&gt;_request-&gt;getPost('Login')){
              $formData=$this-&gt;_request-&gt;getPost();
              if($form-&gt;isValid($formData)){ //If form data is valid
                  $name=$this-&gt;_request-&gt;getPost('username');
                  $password=$this-&gt;_request-&gt;getPost('password');
                  /****Creating object of model adminlogin class*****/
                                 $adminLoginObj=new Admin_Model_Adminlogin();
                  $fetchResult=$adminLoginObj-&gt;checkAdminAuthority($name,$password);
                  if(count($fetchResult)&gt;0){
                      $mysession-&gt;adminName=$name;
                      $this-&gt;_redirect('/admin/');
                  }else{
                      $mysession-&gt;failLogin="Invalid Username or Password!";
                      $this-&gt;_redirect('/admin/login');
  
                  }
              }
          }
      }
  
  }
  </code></pre>
  
  <p>Following is Application.ini</p>
  
  <pre><code>[production]
  phpSettings.display_startup_errors = 0
  phpSettings.display_errors = 0
  includePaths.library = APPLICATION_PATH "/../library"
  bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  bootstrap.class = "Bootstrap"
  appnamespace = "Application"
  resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  resources.frontController.params.displayExceptions = 0
  
  resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  resources.db.adapter = "PDO_MYSQL"
  resources.db.params.host = "localhost"
  resources.db.params.username = "root"
  resources.db.params.password = "root123"
  resources.db.params.dbname = "quickstat"
  resources.db.isDefaultTableAdapter = true
  resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
  resources.frontController.baseUrl = "/ZendTecAdmin/"
  
  resources.session.remember_me_seconds = 864000
  
  [staging : production]
  
  [testing : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  
  [development : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  resources.frontController.params.displayExceptions = 1
  
  
  resources.db.params.profiler.enabled = true
  resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
  includePaths.models = APPLICATION_PATH "/models/"
  </code></pre>
  
  <p>And model
  application/models/Admin.php</p>
  
  <pre><code>&lt;?php
      class Admin_Model_Adminlogin extends Zend_Db_Table{
          /* The Model Class Will be associated with register table*/
  
          protected $_name='users';
  
          function checkAdminAuthority($name,$pasword){
              $where="username='".$name."' and password='".$pasword."'";
              return $row=$this-&gt;fetchRow($where);
          }
  
      }
  </code></pre>
  
  <p>Please help me to resolve this issue.</p>