2017-02-15 58 views
0

我在ZEND Framework 1中有应用程序。 我想添加新页面,并转到此页面而不是旧页面。新添加的页面在ZendFramework中不起作用

但问题是,重定向到新的页面不起作用,我不知道为什么。

一些片断: 在索引控制器的功能初始化:

 ... 
     // 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问题,而是以前的开发问题。

相关问题