\ProductFinder
ProductFinder is a stand-alone page for searching and filtering products, reachable by default at yoursite.com/search.
Pass a 'search' get parameter in the url to perform the search.
TODO:
sort results by popularity, newest
choose number of results
join with other dataobjects for fuller search
closer matches are better eg 'sam' vs 'samoa'
search module
fuzzy search
mispelling
Synopsis
class ProductFinder
extends Page_Controller
{
- // members
- public static string $url_segment = "products";
- protected array $templates = ;
- // methods
- public void Title()
- public void Link()
- public void init()
- public void getSorter()
- public void Form()
- public void index()
- protected void results()
- protected DataQuery query()
- protected void matchFields()
- protected void phraseFilters()
Hierarchy
Extends
- Page_Controller
Members
protected
- $templates
public
- $url_segment