get

Fetches a POST or GET parameter by key

Example

The most simple search setup

// http://yourdomain.com/search/?q=hello
if($q = get('q')) {
  $results = $site->index()->search($q);
}