hi
how to build search form similar to this http://doc.silverstripe.org/ ?
typing some word and geting all matches topics (titles)
my code is
function SearchForm() {
$searchText = isset($this->Query) ? $this->Query : 'Znajdź produkt';
$fields = new FieldSet(
new TextField("Search", "", $searchText)
);
$actions = new FieldSet(
new FormAction('results', 'szukaj')
);
$form = new SearchForm($this, "SearchForm", $fields, $actions);
$form->classesToSearch(array('SiteTree'));
return $form;
}