// Setup routing of model autoloaders $loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application')); // 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 Delivery Report model $nvobj = new Application_Model_Nevdata(); echo "Data: " . date("Y-m-d"); $res1 = $nvobj->getClubstatus(0); $blngArr = array(1, 15, 31, 61); // $blngArr = array(6, 13, 22, 37); // $bd = $nvobj->selectingBirthdayUFC(); $blng_one = $nvobj->selectingBlngUFC($blngArr[0]); $blng_sec = $nvobj->selectingBlngUFC($blngArr[1]); $blng_third = $nvobj->selectingBlngUFC($blngArr[2]); $blng_fourth = $nvobj->selectingBlngUFC($blngArr[3]); //selectingBlngUFC // echo '<pre>';print_r($res1); // exit; foreach ($res1 as $arr => $res) { echo "Clubid: " . $res->getClubid() . '<br>'; if ($res->getBodconf()) { $phones = $nvobj->getClubBdPhones($res->getNevid()); // $phones = $nvobj->getphonelistSNFCloc($res->getNevid(), $bd); echo count($phones) . '<br>'; echo "<pre>"; print_r($phones); // $nvobj->sendCampaign($res->getBodmsg(), $phones, $res->getBodsend(), $res->getTimezone(), $res->getClubid());