public function referralAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $request = $this->getRequest(); $referral = App_Model_Mongodb_RequestLog::referral($request->getParam('periode')); $this->getResponse()->setBody(Zend_Json::encode($referral)); }
public function referralAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); $db = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application-cli.ini', 'mongodb'); Shanty_Mongo::addConnections($db); $ref = App_Model_Mongodb_RequestLog::referral(); print_r($ref); }