Re: [pear-webmaster] new search, some tips
| From: | Martin Jansen | Date: | Thu, 14 Jul 2005 15:23:24 +0000 |
| Subject: | Re: [pear-webmaster] new search, some tips | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-4214@lists.php.net to get a copy of this message | ||
On Thu Jul 14, 2005 at 05:0725PM +0200, Pierre-Alain Joye wrote:
> I would like to get the HTML out of the Damblan Search classes.
> Making pearweb easier to customize.
The formatting that is applied in Damblan_Search_Packages is really
light-weight and I doubt that one would want to touch it when changing
the look of the pages.
> Any objection to do so? Using templates/search_result.html for
> example.
Please not. I specifically got rid of the stuff in templates/ for the
package search because it was a nightmare to maintain, and because it
was needlessly slow.
> A second point is the usage of getAll, it is generally not a good
> idea. As we use the same DB objects everywhere, I fail to see why
> we do not store/returns result objects more often. Avoid multiple
> and useless loops for nothing, and is a bit more "memory friendly".
I don't understand that. Could you give some concrete hints on what
should be changed?
- Martin