Oh,Yeah~~
Thank you give me the direction.
On 5月31日, 下午7時56分, Pierre Minnieur <[EMAIL PROTECTED]
project.com> wrote:
> You have to pull the JSON encoded data directly in the response body,
> not in a X-JSON header, otherwise ExtJS's JsonReader will not read it.
>
> On May 31, 10:07 am, Cipher Chien <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---