开发者

Is there a proper way to forward to an sfDoctrineRoute without losing the current request?

I'd like to forward (or redirect) to an sfDoctrineRoute without los开发者_如何学Going the current request data.

My issue is that when I use forward, the route isn't executed correctly and so things like $form->getObject() don't work. But if I redirect to the URL, I lose all my request data...


Why not pass the request params with the redirect?

$this->redirect('@someroute?params='.$params);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜