... $filter = new Filter(DATARECORD CLASS NAME); $form = new Form('searchform', 'search.form'); if ($form->isSubmitted()) { $values = $form->getValues(); $filter->addCondition(new ConditionLike('field_to_search', $values['value_to_find'])); } $collection = $filter->execute(); $result = Table::getDataFromCollection($collection);