Hey guys, running into a cheesy error with sf propel pager...
as we know...
we can carry out pagination as follows:
$pager = new SFPropelPager('Articles', 5);
My pagination is fine, what's bugging me is the 2nd argument of
SFPropelPager, which is the amount of data that can be seen across a single
page. I have the user specify through
a select menu, the total amount of data he expects to be reflected across a
single page.Each of the answer options correspond to choices, for ,e.g :
1=>1, 2=>'2', 3=>'3'...etc...so on...basically in my azction, I retrieve 1
or 2 or 3 depending on the user choice.this I then send as an argument to my
pager function, which seemingly does not recognize it. It simply displays no
data at all./..i.e it will display 0 data when infact I have chosen 10 as
the option..
What's funny is that the way I am sp[ecifiny this default is like:
if(!isset($totalQuestions))
$totalQuestions = 5;
$pager = new SFPropelPager('Articles', $totalQuestions);
the default is working fine, that is in the first case, 4 articles can be
seen...but when I hit the query button, and have a post happening, although
the value is prpagated across the function, it just does not seem to work..
I hope I described this well...please let me know if anyone has any leads on
this.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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