Hi all,

Is there an easy way of linking to the current page with a parameter
changed.

Take a forums example, the user is currently viewing:

http://localhost/forums/view/thread/1234/page/1

and you want to do a link to page 2.  I know I can reconstruct the URL
but is there anything like:

<?php echo link_to("Page 2", "?page=2") ?>

that automatically says, OK there was no URL so we'll go back to the
same page and there already was a page parameter so we'll change the
value to 2.

If not, would there be any interest in me providing a patch to
UrlHelpers.php to provide this functionality?

Cheers,


Andy


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to