2014-12-25 3 views
0

지불 시스템 (LiqPay)이 있고, 지불 요청을 보내면 받아 들일 필요가 있지만, 아무 것도 나오지 않습니다. $data$signature = null. 별도의 PHP 파일에서 모두 완벽하게 받아 들여지고, 없습니다. 당신이 init() 메서드에서 게시물을 호출하는 경우, 내 필드가 아닌 -이 사용자 ID (세션에서), 그것은 indexAction에만 허용됩니다.Zend Framework 게시일 문제

class User_FeedController extends Zend_Controller_Action { 

     protected $bd_usinfo; 
     protected $hidefree = false; 

    public function indexAction() { 
      $data = $_POST['data']; 
      $sigrnature = $_POST['signature']; 

      $getfeed  = $this->bd_usinfo->getinfobyuserid($this->session['user_id']); 
      $this->view->ud = $getfeed; 
      $this->view->me = $this->session; 

      $this->view->hidefree = false; 

      //$this->view->hidefree = true; 
      if ((($this->bd_usinfo->isProfessional($this->session['user_id'])) || ($this->session['role'] == '4'))) { 
       $this->view->hidefree = true; 
       $this->view->prof  = 1; 
      } 
      if ($getfeed->feedtime != null) { 
       $this->view->hidefree = true; 
      } 
      if ($this->session['feed'] == 0) 
       $this->view->hidefree = true; 

      $chng = $this->_request->getParam('chs'); 
      if ($getfeed->feed != '-1' && $chng == false && $stop != 1) { 
       $this->view->alreadyactive = "У вас активирована "; 
       if ($getfeed->feedtime != null) { 
        $time_feed = date('n', $getfeed->feedtime - mktime(0, 0, 0, date('m') + 1)); 
        // $this->view->alreadyactive .= $feeds[$time_feed]; 
        $this->view->alreadyactive .=" платная подписка до " . date('d.m.Y', $getfeed->feedtime); 
       } 
       else { 
        $this->view->alreadyactive .= " бесплатная подписка"; 
       } 
      } 
      $this->view->role  = $this->session['role']; 
      $this->bd_config  = new Admin_Model_Config(); 
      $settings    = $this->bd_config->getSettings(); 
      $settings    = $settings->toArray(); 
      $this->view->settings = $settings; 
     } 
+0

는 타사 사이트가 액션에 데이터를 전송합니다하셨습니까 당신이 바로, 게시 된 데이터를 얻지 못하고있어? –

답변

0

액세스 제어 원점에 대한 헤더를 설정할 수 있습니다.

봅니다 선 이하로 설정하는 indexAction :

header('Access-Control-Allow-Origin: *');