| Katana 2004-05-07, 6:49 am |
| > No answers to this morning's query so after doing a bit of digging around
> the archive and the manual, I reckon my best bet (correct me if I'm wrong)
> would be to do my initial search and then store the results in a cookie (a
> big one). I can see how I can read a cookie {$smartie.cookie.cookiename},
> and also send and read the record number (in the recordset), but can I read
> the cookie by record or should I be looking to handle that part in php? I
> also need to be able to remove a record from the array (not necessarily the
> first or last record so php's array_splice() would come in usefully for
> that.
I think you should use session vars rather than cookies... and they can
be read the same way from smarty (even if it's not really the best
method, since application logic should remain in the PHP code and not be
moved to the template code).
Katana
|