2017-02-15 20 views
0

私はZENDフレームワーク1にアプリケーションを持っています。 新しいページを追加して、古いページではなくこのページに移動します。新しい追加ページがZendFrameworkで動作しない

しかし問題は、新しいページへのリダイレクトが機能しないことです。理由はわかりません。

一部抜粋:関数initでIndexControllerで :リダイレクト機能の

 ... 
     // THIS IS OLD PAGE 
     case $this->view->root_by_names['register']['root_furl']: 
       $this->view->root_name = 'register'; 
       $this->_forward('register'); 
       break; 

     // THIS IS NEW PAGE 
     case $this->view->root_by_names['register2']['root_furl']: 
      $this->view->root_name = 'register2'; 
      $this->_forward('register2'); 
      break; 
     ... 

// old action (working ok) 
public function registerAction(){ 
    $this->_redirect($this->view->CreateUrl(array($this->view->root_by_names['register']['root_furl']))); 
} 

// new action (doesn't work) 
public function register2Action(){ 
     $this->_redirect($this->view->CreateUrl(array($this->view->root_by_names['register2']['root_furl']))); 
    } 

DBエントリ:ビューに提出 enter image description here

フォーム:

// WORKING 
<form method="get" action="<?=$this->CreateUrl(array($this->root_by_names['register']['root_furl'], 'producer'))?>"> 
    <button id="button-new-account-producer" class="submit">NEXT</button> 

</form> 


// DOESN'T WORK 
<form method="get" action="<?=$this->CreateUrl(array($this->root_by_names['register2']['root_furl'], 'producer'))?>"> 
    <button id="button-new-account-producer" class="submit">NEXT</button> 
</form> 

Rejestracja - 古いページ
Rejestracja2 - 新しいページ

古いページ(作業中)については、新しいページにリダイレクトされています。 新しいページのために - 私は何とか現在のページにとどまります。

register2ページはFTP上のレジスタのコピーです。

私はすべての情報を提供したいと思います。複雑ではありませんか。 誰かが私が新しいページに間違っていることを考えさせることができますか?

答えて

0

解決策が見つかりました。 は、リクエストがフィルタリングされる他のレイヤーでした。それはZFの問題ではなく、以前の開発の問題です。

関連する問題