【问题标题】:Typo3 Neos Redirect to BackendTypo3 Neos 重定向到后端
【发布时间】:2015-02-17 10:09:28
【问题描述】:

我对 Typo3 Neos 上的示例网站有疑问。有创建一个帐户,我在后端对其进行了测试。提交后,页面再次返回后台。但是当我尝试制作这样的表格时,返回目标是路由,而不是后端。我怎样才能获得与示例相同的回报?

即使我已经实现了与示例相同的代码。

$uriBuilder = new UriBuilder(); 
$uriBuilder->setRequest($this->request->getParentRequest()); 
$redirectUri = $uriBuilder ->setCreateAbsoluteUri(TRUE)
                           ->uriFor('index', array('username' => $accountIdentifier), 'Login', 'TYPO3.Neos'); 
$this->redirectToUri($redirectUri);

编辑:我从“动作”中得到一个错误,他试图做的路径是“http://domain/Route/Action/”,应该只是“动作”。需要解释一下吗?

任何帮助将不胜感激。 :)

【问题讨论】:

    标签: typo3 typo3-flow neoscms


    【解决方案1】:

    得到答案

    $this->redirect("youraction");
    

    谢谢!

    【讨论】:

      猜你喜欢
      • 2015-06-23
      • 2014-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-06
      • 1970-01-01
      • 1970-01-01
      • 2014-07-11
      相关资源
      最近更新 更多