【发布时间】:2011-05-15 16:38:58
【问题描述】:
我正在尝试使用简单的 ajax 链接:
jq_link_to_remote('Click me!', array( 'update' => 'myDiv',
'url' => 'module/action?id='.$user->getId(),
'method' => 'post' ));
动作真的很简单:
public function executeAction(sfWebRequest $request)
{
return $this->renderText('test');
}
当我按下链接时,没有任何反应。如果我将“方法”更改为“获取”,它会按预期工作 - 那怎么可能?
【问题讨论】:
-
您能否也包括此发布到的操作代码?