forked from pods-framework/pods
-
Notifications
You must be signed in to change notification settings - Fork 0
Filters()
bonsak edited this page Nov 20, 2012
·
1 revision
Output a filter form for searching a Pod
public function filters (
$params = null
)
Parameter | Type | Details |
---|---|---|
$params | string or array | Comma-separated list of fields or array of parameters |
Option | Type | Default | Details |
---|---|---|---|
fields | string or array | $params | Comma-separated list or array of field names |
label | string | Search | Label of filter submit button |
action | string | n/a | Action to use in form action="" |
search | string | $_GET[$this->search_var] | Search string in search field |
(string) Filter Form HTML
Building a Store Locator with proximity search using Pods Contributed by jchristopher Learn how to build a store locator with proximity search
2.0+
filters() is located in /pods/classes/Pods.php