Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

SmartyPaginate - Get Array

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
DumKopf
Smarty Rookie


Joined: 24 Sep 2007
Posts: 8

PostPosted: Tue Jul 21, 2009 1:52 am    Post subject: SmartyPaginate - Get Array Reply with quote

I have a form that passes an array through _GET, so the url is:

Code:
http://localhost/service/search_repairer.php?repairer_id=25&repairer_branch_id=25&status_id[]=10&status_id[]=20&status_id[]=30&status_id[]=40&status_id[]=50&status_id[]=60&status_id[]=70&status_id[]=80


SmartyPaginate doesn't accommodate for arrays and passes the url as:

Code:
http://localhost/service/search_repairer.php?repairer_id=63&repairer_branch_id=63&status_id=Array&next=1


I'm having trouble finding where the url is formed in the SP class. Anyone able to assist?
Back to top
View user's profile Send private message
DumKopf
Smarty Rookie


Joined: 24 Sep 2007
Posts: 8

PostPosted: Tue Jul 21, 2009 2:47 am    Post subject: Reply with quote

my bad, needs to be set in SmartyPaginate::setURL when setting up, it's my fault it's not parsing the arrays correctly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP