I can not implement pbSubHubbub, need help ==========================
this works very well public function pbSubHubbubAction() { $dbAdapter = $this->getServiceLocator()->get('Zend\Db\Adapter\Adapter'); $table = new TableGateway('rss_subscription', $dbAdapter); $storage = new \Zend\Feed\PubSubHubbub\Model\Subscription($table); $subscriber = new \Zend\Feed\PubSubHubbub\Subscriber; $subscriber->setStorage($storage); $subscriber->addHubUrl('http://pubsubhubbub.appspot.com'); $subscriber->setTopicUrl('http://feeds.feedburner.com/fayerwayer'); $subscriber->setCallbackUrl('http://mysite.com/rss/blog/callback'); $subscriber->subscribeAll(); $json = new JsonModel(array('status' => 'ok')); return $json; } ================ Not sure how to run this action public function callbackAction() { $dbAdapter = $this->getServiceLocator()->get('Zend\Db\Adapter\Adapter'); $table = new TableGateway('rss_subscription', $dbAdapter); $storage = new \Zend\Feed\PubSubHubbub\Model\Subscription($table); $callback = new \Zend\Feed\PubSubHubbub\Subscriber\Callback; $callback->setStorage($storage); $subscriptionKey = $this->params()->fromRoute('key'); $callback->setSubscriptionKey($subscriptionKey); $callback->handle(); $callback->sendResponse(); var_dump($callback->getHttpResponse()); //return /*object(Zend\Feed\PubSubHubbub\HttpResponse)#237 (3) { ["content":protected]=> string(0) "" ["headers":protected]=> array(0) { } ["statusCode":protected]=> int(404)*/ if ($callback->hasFeedUpdate()) { $feedString = $callback->getFeedUpdate(); /// never comes here :( } $json = new JsonModel(array('status' => 'ok')); return $json; } =============== I need to do to make it work? -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/pbSubHubbub-statusCode-404-tp4658800.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com