title: ZEND FRAMEWORK Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception'
body: <p>I searched a lot but didn't get any solution. I am getting following error and stuck after that.</p>
  <blockquote>
  <p>Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception'
  with message 'Resource matching &quot;db&quot; not found' in
  /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php:694
  Stack trace: #0
  /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php(629):
  Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource('db')</p>
  <h1>1 /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586):</h1>
  <p>Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap('db') #2
  /var/www/html/ZendTecAdmin/application/Bootstrap.php(6):
  Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap('db') #3
  /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php(669):
  Bootstrap-&gt;_initMyDb() #4
  /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php(622):
  Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource('mydb')</p>
  <h1>5 /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586):</h1>
  <p>Z in
  /var/www/html/ZendTecAdmin/library/Zend/Application/Bootstrap/BootstrapAbstract.php
  on line 694</p>
  </blockquote>
  <p>Apllication.ini</p>
  <pre><code>[production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  includePaths.library = APPLICATION_PATH &quot;/../library&quot;
  bootstrap.path = APPLICATION_PATH &quot;/Bootstrap.php&quot;
  bootstrap.class = &quot;Bootstrap&quot;
  appnamespace = &quot;Application&quot;
  resources.frontController.controllerDirectory = APPLICATION_PATH &quot;/controllers&quot;
  resources.frontController.params.displayExceptions = 1
  
  resources.frontController.moduleDirectory = APPLICATION_PATH &quot;/modules&quot;
  
  resources.layout.layoutPath = APPLICATION_PATH &quot;/layouts/scripts/&quot;
  resources.frontController.baseUrl = &quot;/ZendTecAdmin/&quot;
  urces.db.isDefaultTableAdapter = true
  
  resources.db.params.profiler.enabled = true
  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.adapter = &quot;PDO_MYSQL&quot;
  resources.db.parurces.db.isDefaultTableAdapter = true
  
  resources.db.params.profiler.enabled = trueams.host = &quot;localhost&quot;
  resources.db.params.username = &quot;root&quot;
  resources.db.params.password = &quot;root123&quot;
  resources.db.params.dbname = &quot;appointment_db&quot;
  resources.db.isDefaultTableAdapter = true
  
  resources.db.params.profiler.enabled = true
  resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
  </code></pre>
  <p>public/index.php</p>
  <pre><code>&lt;?php
  // Define path to application directory
  defined('APPLICATION_PATH')
      || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  
  // Define application environment
  defined('APPLICATION_ENV')
      || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
  
  // Ensure library/ is on include_path
  set_include_path(implode(PATH_SEPARATOR, array(
      realpath(APPLICATION_PATH . '/../library'),
      get_include_path(),
  )));
  
  /** Zend_Application */
  require_once 'Zend/Application.php';
  // Create application, bootstrap, and run
  
  
  $application = new Zend_Application(
      APPLICATION_ENV,
      APPLICATION_PATH . '/configs/application.ini'
  );
  $application-&gt;bootstrap()
              -&gt;run();
  Zend_Db_Table::getDefaultAdapter();
      //define('BASE_URL', $baseUrl);
  </code></pre>
  <p>Bootstrap.php</p>
  <pre><code>&lt;?php
  
  class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  {    
      protected function _initMyDb() {
      $this-&gt;bootstrap('db');
      $resource = $this-&gt;getPluginResource('db');
      $db = $resource-&gt;getDbAdapter();
      $db-&gt;query('SET CHARACTER SET \'UTF8\'');
  }
  }
  </code></pre>
  <p>Please help me to resolve this.
  Any support will be appreciable.</p>