Hi,

It's a weird post here, but I think it is possible to find the one who
like me use symfony+EXT JS.

I tried to make a member basic information form and it will pass the
member data to the form with JSON format in beginning.

my symfony action code is:
class memberActions extends sfActions{
        public function executeGetinfo(){
                $output = '
                  [{"id":"1",
                  "name":"Mr Brown"
                  }]';

                $this->getResponse()->setHttpHeader("X-JSON", $output);

                return sfView::HEADER_ONLY;
        }
}

my Ext code is:
......
member_data = new Ext.data.Store({
  proxy: new Ext.data.HttpProxy({url: '/backend_dev.php/member/
getinfo'}),
  reader: new Ext.data.JsonReader({},[ 'id', 'name'])
});

But it can't pass data to Ext.
My question is how to pass the data to Ext?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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