public function loadmorestoriesAction() { if ($this->getRequest()->isGet() && $this->_ajaxRequest) { $storyService = new Service_Userstory(); if ($page = $this->getRequest()->getParam('page', FALSE)) { if (is_array($stories = $storyService->fetch($this->_user->id, $page))) { $this->_response->appendBody(Zend_Json::encode($stories)); return; } else { $this->_response->appendBody('0'); return; } } } else { return $this->_redirect('/profile'); } }