title: Zend Framework ZEND_QUEUE implementation
body: <p>I am new to ZEND and I am working on the version (ZEND 1.11.1) I am trying to implement the ZEND_QUEUE in my zend application and there is no proper tutorial for me. All through I am trying to implement the Queue.</p>
  
  <p>I am developing a Queue for DB. The application works likes the following flow:
  1. The user inputs a SQL query through a application and waits for the result.
  2. The query will be moves to QUEUE and processed with the Database once the Query successfully done. The query should send the result sent to the user.</p>
  
  <p>Inside my Controller:</p>
  
  <pre><code>class IndexController extends Zend_Controller_Action
  {
    public function indexAction()
    {
     $options = array(
          'name'          =&gt; 'queue1',
          'driverOptions' =&gt; array(
          'host'      =&gt; '127.0.0.1',
          'port'      =&gt; '3306',
          'username'  =&gt; 'queue',
          'password'  =&gt; 'queue',
          'dbname'    =&gt; 'queue',
          'type'      =&gt; 'pdo_mysql'
               )
          );
  
          // Create a database queue.
          // Zend_Queue will prepend Zend_Queue_Adapter_ to 'Db' for the class name.
          $queue = new Zend_Queue('Db', $options);
          foreach ($queue-&gt;getQueues() as $name) {
            echo $name, "\n";
          }
         $queue-&gt;send('My Test Message');
       }
  }
  </code></pre>
  
  <p>The Problem which I am facing is I am not able to understand at which folder I want to add the code.</p>
  
  <p>I am not using MODELs in my application as the requirement for the application is to use only CONTROLLER and VIEW.</p>
  
  <p>Also when I try to extent the Zend_Queue_Adapter_Db I am getting the following error:</p>
  
  <p>Fatal error: Class 'ZendJobQueue' not found</p>
  
  <p>or </p>
  
  <p>Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in F:\wamp\www\helloworld\library\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 F:\wamp\www\helloworld\library\Zend\Controller\Front.php(946): </p>
  
  <p>Kindly advice me for the correct folder or any tutorial which help for a beginner to work with ZEND JOBQUEUE.</p>