Re: previous / next page
| From: | Monte Ohrt | Date: | Fri, 27 Apr 2001 13:56:47 +0000 |
| Subject: | Re: previous / next page | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-617@lists.php.net to get a copy of this message | ||
That's fine until you turn on caching. Thus the insert tag.
Andrei Zmievski wrote:
>
> On Fri, 27 Apr 2001, Monte Ohrt wrote:
> > This has been discussed before, check the archives. Show your search
> > results with an insert tag. I don't have any explicit examples though,
> > sorry. Maybe this will be added to tips & tricks if I find some time.
>
> You don't really need to use an insert tag. Some simple logic in the
> main script that gets the range of results to be shown and assigns them
> to the template is sufficient. The script should also assigned the
> offset values for previous/next pages to the template and the template
> passes them onto the script as hidden variables.
>
> -Andrei
> * If Bill Gates had a nickel for every time Windows crashed.. Oh, wait.. *
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/