Hi,
Can someone explain to me why the following code isn't outputting anything in a component? Does the response object in a component behave differently from that in an action (since the code works as part of an action)?
I am using Symfony 1.4.
$this->getResponse()->setContent("OK");
Code block:
class merchantComponents extends sfComponents
{
.....
public function executeAjaxrcmc(sfWebRequest $request)
{
$company_user_id = $this->getRequestParameter('ids');
if(($company_user_id>0) && $request->isMethod('post'))
{
$this->getResponse()->setContent("OK");
return sfView::NONE;
}
else
{
$this->getResponse()->setContent("FAIL");
return sfView::NONE;
}
}
....
}
Thanks in advance!