RE: [SMARTY] Auto-Pagination for Smarty

From: Date: Wed, 30 Oct 2002 10:32:31 +0000
Subject: RE: [SMARTY] Auto-Pagination for Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6271@lists.php.net to get a copy of this message
The idea is: $QUERY_STRING = ereg_replace("(^|&)page=[0-9](&|$)","\\1", $_SERVER['QUERY_STRING']); $thispage = $_SERVER['PHP_SELF']."?".$QUERY_STRING; and then modify all the links -----Mensaje original----- De: Ben Phillips [mailto:ben@inchima.com] Enviado el: miercoles, 30 de octubre de 2002 11:30 Para: smarty-general@lists.php.net Asunto: RE: [SMARTY] Auto-Pagination for Smarty jose, > Good idea. I have tested and it works, but? > what about the query string? If > http://127.0.0.34/table.php?hello=1 show me a > list of > records when click on the paging link the query string > becomes http://127.0.0.34/table.php?page=1 and not > http://127.0.0.34/table.php?page=1&hello=1 > This should be implemented. it certainly should, and is on my to-do list. all that's needed is to loop over the $_GET[] array and reattach them to the link. benji. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6271) next »