English 中文(简体)
如何将URL参数推向表1.4控制器?
原标题:How to forward with URL parameters in Symfony 1.4 controller?

I m使用同义语1.4,并想在我的控制员中向另一个控制员转达一些参数的行动。

在制造了“bike/create”的“bike”之后,我想向“bike/show/id/X”转交我的新的双ke。

$forwardString =  bike/show/id/ .$bike->id;
$this->forward($url);

这并不可行:

Maybe you can help! :) Greetings!

最佳回答

<代码><<>forward 的方法学定义是 公开功能($module,$action) 请求应予保留,如果这些内容目前不属于请求范围,则须首先予以补充。

您甚至可能还需要<代码>redirect。 相反,王位的变动以及你只给其“url的公共职能(美元、月度=302美元)<>条码”的用法是<条码>thi->redirect(Bike/show?id= )。 (bike->id);

问题回答

暂无回答




相关问题
To populate select options at backend using Symfony?

the symfony form is, nation =>new sfWidgetFormChoice(array( choices => NationPeer::getAllNation())), township =>new sfWidgetFormChoice(array( choices => TownshipPeer::...

Seriously speeding up PHP?

I ve been writing PHP for years, and have used every framework under the sun, but one thing has always bugged me... and that s that the whole bloody thing has to be interpreted and executed every time ...

How to unit-test an enterprise symfony project?

I´m working on a huge project at my work. We have about 200 database tables, accordingly a huge number of Models, Actions and so on. How should I begin to write tests for this? My biggest problem ...

edit profile from frontend - symfony

I succeeded to create a register form, and now users can register my site. But I can t create a form where users can edit their profile. I have sf_guard_user and sf_guard_user_profile in my schema....

热门标签