/** * * */ public function toonefolderAction() { if ($this->getRequest()->isPost()) { $msg = new Application_Model_Message($this->user); $folderid = trim($this->request->getParam("folderid")); $userid = $this->user->getId(); $phones = $msg->selectAllsubcribers($userid); // echo '<pre>'; print_r($phones); exit; $msg->cleanUpTotalfolder($folderid); if (count($phones) != 0) { $msg->intoOnefolderAllsubcribers($phones, $folderid); echo "Folder is populated"; } } exit; }