17 Dec 2010 11:49 PM #1
Zend Framework getRequest and JSONStore start/limit params
Has anyone had any experience trying to paginate a datagrid, when the URL for a JSON store is to a ZF action?
The problem I have. ExtJs from what I have read sends ?start=x&limit=y
I can't seem to figure out how to get Zend to interpret that type of query, and was hoping there was a way to format the JSONStore param sting to set the url with /start/x/limit/y
Is this possible, or how can I use the existing way ExtJS posts the request with Zend?
18 Dec 2010 8:32 AM #2
in request object you can use getParam method
in action object you can use _getParam methodNo honor is like knowledge
18 Dec 2010 2:42 PM #3
I know about the getParam method. However, when ExtJS sends the request it uses ?start=x&limit=y, and I have no idea how to fetch that from getParam, as it is expecting something like /start/x/limit/y OR x/y - it's the way the string is sent to the framework that I'm unsure how to process.
Any pointers would be great. Cheers for the response.
18 Dec 2010 4:58 PM #4
Sounds like you need to change the ordinary Ext-HTTP/url-encode for encoding the params differently,which is what the store(which Jsonstore extends) uses. Can be done in the ext class i think,replacing & to /. I haven't done it myself. Also might affect many other function?
22 Dec 2010 9:52 PM #5
Why dont use POST OR GET param?
this is simple code for get json result fo extjs grid with limit for paginator in action method
$paginator= new Zend_Paginator_Adapter_DbTableSelect($select);
Last edited by vahid4134; 22 Dec 2010 at 11:38 PM. Reason: mistakeNo honor is like knowledge
22 Dec 2010 11:40 PM #6
_getParam get parameter from get post request and standard router URLNo honor is like knowledge
By tpouyer in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 29 Nov 2011, 1:44 AM
By email@example.com in forum Sencha日本語フォーラムReplies: 8Last Post: 4 Apr 2011, 6:14 AM
By jimtyp in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 2 Oct 2009, 12:13 PM
By ka3S in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 6 Feb 2008, 8:05 AM
By cluettr in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 27 Jun 2007, 11:09 AM