On Wed, Apr 16, 2008 at 11:05 AM, Cipher Chien <[EMAIL PROTECTED]> wrote:

>  below is my sample code:
>  in action:
>  function executeTest()
>  {
>     $json = array('success'=>true);
>
>     $this->getResponse()->setHttpHeader("X-JSON", '()');
>     echo json_encode($json);
>     return sfView::HEADER_ONLY;
>  }

Try:

function executeTest()
{
  $json = array('success' => true);
  $this->getResponse()->setHttpHeader('X-JSON', json_encode($json));
  return sfView::HEADER_ONLY;
}

HTH

++

-- 
Nicolas Perriault
http://prendreuncafe.com/blog
GSM: 06.60.92.08.67

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to