ControllerBase.php
<?php
protected function forward($uri){
$uriParts = explode('/', $uri);
return $this->dispatcher->forward(
array(
'controller' => $uriParts[0],
'action' => $uriParts[1]
)
);
}
SessionController.php
.....
if ($password != $rePassword) {
$this->flash->error('两次输入的密码不一致,请重新输入!');
return $this->forward('session/register');
}
......
The result----->
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
两次输入的密码不一致,请重新输入!
...........
两次输入的密码不一致,请重新输入!
Dispatcher has detected a cyclic routing causing stability problems
I can't find the way to debug the question, help me!