This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfExtjs2Plugin: how to get data from action to GridPanel?

Forum to discuss ExtJS and other JS plugins

sfExtjs2Plugin: how to get data from action to GridPanel?

by hi27 » Fri Sep 26, 2008 10:01 pm

hi,
i'm new to Extjs, and i have a question (i think a simple one):

how to format the data returned from action (to template) to be valid to use in sfExtjs2Plugin->GridPanel (or form)?

please, it's urgent!
i read about PHP-JSON extension which convert data to suitable format, but i couldnt get anything works.

in my module, the action passes a ($news) which is a result of sql request:
"SELECT * FROM news"
{id, title, author}

how to use ($news) in a grid?
i tried to use "json_encod()" and then loadData() into a Store or SimpleStor , but doesnt work.

thanks in advance
hi27
Junior Member
 
Posts: 8
Joined: Tue Jun 03, 2008 11:54 pm