// Name, path, namepsace $loader->addResourceType('model', 'models', 'Model'); // Get our config file $config = new Zend_Config_Ini($apppath . '/application/configs/application.ini'); Zend_Registry::set('config', $config->production); // Because our models need it this way // Get the messages model $message = new Application_Model_Message(); // Set up our current timestamp $timestamp = date('Y-m-d H:i:s'); // Log the start of this read logWrite("####################################"); logWrite("Begin batch send: {$timestamp}"); logWrite("------------------------------------"); // Get the queue and counts $queue = $message->getQueue(); $queueCount = count($queue); $sendCount = 0; // Log our counts logWrite("Message Queue Count: {$queueCount}\nBegin send loop:"); //logWrite("") if (is_array($queue)) { if (!empty($queue)) { foreach ($queue as $id => $message) { if ($message instanceof Application_Model_Message) { $log = "Message ID {$id} status: "; // if ($message->send()) { // $sendCount++; // $log .= 'SENT'; // //exit; // }