Hi!
my problem is redirect the content of my query in a different page. in my template I put $doRicerca, I try also con $arra_data but nothig change
and my function is:
function doRicerca($data, $form) {
if(!empty($data['nome']))
{ $form_value = array('Nome' => $data['nome'], 'Tipo' => $data['tipologia']);
}
//var_dump($form_value['Nome']);var_dump($form_value['Tipo']);die;
$array_data = "";
$records = DB::query('select nome from ricercapollsubmission where tipologia='.$form_value['Tipo'].' limit 0,10 ');
while ($rec=$records->nextRecord()) {
if($rec['nome'] != null)
$array_data .= $rec['nome'].'<br/> ';
}
return $this->customise($array_data)->renderWith(array('SearchPage_results', 'Page'));
}