hey everyone,
So I have a couple of pages, dealing with pagination.
Lets' call this 'summary of records' and 'detailed records'
Summary of records, is essentially a tabulated list of records belonging to
*several students*.
detailed records, is essentially a detailed record of data belonging
to a *particular
student*
So in the summary of records page, when I click upon one of the students
records, this students name is transferred to the detailed records page in
the URL parameter.
IN the detailed records page action, here is what I do
$username = $_GET['Name'];
$this->pager = $this->getPager($username);
This pager displays data in the template, clearly with pagination, however,
when I move to the next page (page 2 , or 3, or 4), it fails to retrieve
the necessary data for the page ....and displays zero questions....the
pagination code is like:
<?php if($pager->haveToPaginate()) { ?>
<div class="pagination">
<a href="/questions/student?name=<?php echo $studentName; ?>?page=1">
<img src="/images/first.png" alt="First page" />
</a>
<a href="/questions/student?name=<?php echo $studentName; ?>?page=<?php
echo $pager->getPreviousPage() ?>">
<img src="/images/previous.png" alt="Previous page" title="Previous
page" />
</a>
<?php foreach ($pager->getLinks() as $page): ?>
<?php if ($page == $pager->getPage()): ?>
<?php echo $page ?>
<?php else: ?>
<a href="/questions/student?name=<?php echo $studentName; ?>?page=<?php
echo $page ?>"><?php echo $page ?></a>
<?php endif; ?>
<?php endforeach; ?>
<a href="/questions/student?name=<?php echo $studentName; ?>?page=<?php
echo $pager->getNextPage() ?>">
<img src="/images/next.png" alt="Next page" title="Next page" />
</a>
<a href="/questions/student?name=<?php echo $studentName; ?>?page=<?php
echo $pager->getLastPage() ?>">
<img src="/images/last.png" alt="Last page" title="Last page" />
</a>
</div>
<?php }?>
I had another page where I used pagination, here i had used a session
variable, and it worked fine every time I navigated to differnet pages of
the paginated page display. I can't use it here, because of whatever reason,
since there are many student records, and setting sessions for each student
every time a question is created is overkill...
Anybody have suggestions on how to counter 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