Ich habe eine Anwendung in ZEND Framework 1. Ich möchte eine neue Seite hinzufügen, und gehe zu dieser Seite anstelle von alten.Neue hinzugefügte Seite funktioniert nicht in ZendFramework
Aber das Problem ist, Umleitung auf neue Seite funktioniert nicht, und ich weiß nicht warum.
einige Auszüge: In Indexcontroller in Funktion init:
...
// 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-Eintrag für die Umleitung Funktionalität:
Form vorliegen:
// 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 - alte Seite
Rejestracja2 - neue Seite
Für alte Seite (funktioniert) Ich bin auf neue Seite umgeleitet. Für neue Seite - ich bleibe irgendwie auf der aktuellen Seite.
register2 Seite ist eine Kopie von Register auf FTP.
Ich hoffe, ich habe alle Informationen zur Verfügung gestellt. Es sollte nicht kompliziert sein. Kann jemand eine Idee haben, was ich falsch mache für neue Seite?